[PATCH 6.12 165/277] sparc: fix error handling in scan_one_device()