UBI: Call scan_all() with correct offset in error case