mirror of
https://mirrors.bfsu.edu.cn/git/linux.git
synced 2024-11-11 04:18:39 +08:00
parisc: ccio-dma: Add missing iounmap in error path in ccio_probe()
Add missing iounmap() before return from ccio_probe(), if ccio_init_resources()
fails.
Fixes: d46c742f82
("parisc: ccio-dma: Handle kmalloc failure in ccio_init_resources()")
Signed-off-by: Yang Yingliang <yangyingliang@huawei.com>
Signed-off-by: Helge Deller <deller@gmx.de>
This commit is contained in:
parent
80e78fcce8
commit
38238be4e8
@ -1546,6 +1546,7 @@ static int __init ccio_probe(struct parisc_device *dev)
|
||||
}
|
||||
ccio_ioc_init(ioc);
|
||||
if (ccio_init_resources(ioc)) {
|
||||
iounmap(ioc->ioc_regs);
|
||||
kfree(ioc);
|
||||
return -ENOMEM;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user