macintosh/macio-adb: check the return value of ioremap()
authorXie Shaowen <studentxswpy@163.com>
Tue, 2 Aug 2022 07:41:48 +0000 (15:41 +0800)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 18 Jan 2023 08:26:27 +0000 (09:26 +0100)
commite4a94e5de842dcff56aa110eae31babf00bf9ec8
tree66232f893f4750d0caccf09cbeb366a8f64de239
parentaa9054267366ff0a382d403d17728e21951ddbb9
macintosh/macio-adb: check the return value of ioremap()

[ Upstream commit dbaa3105736d4d73063ea0a3b01cd7fafce924e6 ]

The function ioremap() in macio_init() can fail, so its return value
should be checked.

Fixes: 36874579dbf4c ("[PATCH] powerpc: macio-adb build fix")
Reported-by: Hacash Robot <hacashRobot@santino.com>
Signed-off-by: Xie Shaowen <studentxswpy@163.com>
Signed-off-by: Michael Ellerman <mpe@ellerman.id.au>
Link: https://lore.kernel.org/r/20220802074148.3213659-1-studentxswpy@163.com
Signed-off-by: Sasha Levin <sashal@kernel.org>
drivers/macintosh/macio-adb.c