[PATCH 6.17 261/371] sparc: fix error handling in scan_one_device()