[PATCH 4.9 105/223] floppy: fix out-of-bounds read in next_valid_format