[PATCH 5.15 504/567] mtd: spi-nor: Fix shift-out-of-bounds in spi_nor_set_erase_type