kernel: handle bad blocks in ubi auto attach code