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)
committerMichael Ellerman <mpe@ellerman.id.au>
Thu, 24 Nov 2022 12:12:18 +0000 (23:12 +1100)
commitdbaa3105736d4d73063ea0a3b01cd7fafce924e6
tree0f902dad8a416665b3c614024dfdd7343d47b2cc
parent5ca86eae55a2f006e6c1edd2029b2cacb6979515
macintosh/macio-adb: check the return value of ioremap()

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
drivers/macintosh/macio-adb.c