[PATCH 6.1 792/885] mtd: spi-nor: Fix shift-out-of-bounds in spi_nor_set_erase_type