Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux
1
fork

Configure Feed

Select the types of activity you want to include in your feed.

uio: pruss: fix missing iounmap() in pruss_probe()

platform_get_irq() is called after ioremap(), if it fails,
iounmap() needs be called in error the path.

Fixes: 2fd84b9b839c ("uio: pruss: fix to check return value of platform_get_irq() in pruss_probe()")
Signed-off-by: Yang Yingliang <yangyingliang@huawei.com>
Link: https://lore.kernel.org/r/20230808123827.560603-1-yangyingliang@huawei.com
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>

authored by

Yang Yingliang and committed by
Greg Kroah-Hartman
979ca1ca e75850b4

+2 -1
+2 -1
drivers/uio/uio_pruss.c
··· 177 177 178 178 ret = platform_get_irq(pdev, 0); 179 179 if (ret < 0) 180 - goto err_free_ddr_vaddr; 180 + goto err_unmap; 181 181 182 182 gdev->hostirq_start = ret; 183 183 gdev->pintc_base = pdata->pintc_base; ··· 215 215 for (i = 0, p = gdev->info; i < cnt; i++, p++) { 216 216 uio_unregister_device(p); 217 217 } 218 + err_unmap: 218 219 iounmap(gdev->prussio_vaddr); 219 220 err_free_ddr_vaddr: 220 221 dma_free_coherent(dev, extram_pool_sz, gdev->ddr_vaddr,