[PATCH 6.6 117/201] sparc: fix error handling in scan_one_device()