diff options
author | Yang Yingliang <yangyingliang@huawei.com> | 2023-01-05 14:41:45 +0800 |
---|---|---|
committer | Michael Ellerman <mpe@ellerman.id.au> | 2023-10-19 17:16:20 +1100 |
commit | 6db51ff905362e6c79593dbda08f61f24b25971c (patch) | |
tree | 3fef8ab8656ace42fe95c27732b2017c68708e90 /drivers/macintosh | |
parent | b574b817cc7bfcc87bbc92b4b19525442401ae5e (diff) |
macintosh/macio-adb: add missing iounmap() on error in macio_init()
Add missing iounmap(), if request_irq() fails.
Signed-off-by: Yang Yingliang <yangyingliang@huawei.com>
Signed-off-by: Michael Ellerman <mpe@ellerman.id.au>
Link: https://msgid.link/20230105064145.3879356-1-yangyingliang@huawei.com
Diffstat (limited to 'drivers/macintosh')
-rw-r--r-- | drivers/macintosh/macio-adb.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/macintosh/macio-adb.c b/drivers/macintosh/macio-adb.c index 55a9f8c3a150..779f1268286e 100644 --- a/drivers/macintosh/macio-adb.c +++ b/drivers/macintosh/macio-adb.c @@ -123,6 +123,7 @@ int macio_init(void) irq = irq_of_parse_and_map(adbs, 0); of_node_put(adbs); if (request_irq(irq, macio_adb_interrupt, 0, "ADB", (void *)0)) { + iounmap(adb); printk(KERN_ERR "ADB: can't get irq %d\n", irq); return -EAGAIN; } |