[PATCH 6.14 152/731] badblocks: return error directly when setting badblocks exceeds 512