mirror of
https://github.com/Fishwaldo/Star64_linux.git
synced 2025-07-23 07:12:09 +00:00
parisc: ccio-dma: Add missing iounmap in error path in ccio_probe()
[ Upstream commit38238be4e8
] 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> Signed-off-by: Sasha Levin <sashal@kernel.org>
This commit is contained in:
parent
523c05ffa6
commit
cd81c85d49
1 changed files with 1 additions and 0 deletions
|
@ -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…
Add table
Add a link
Reference in a new issue