[PATCH v3] mtd: spi-nor: Fix shift-out-of-bounds in spi_nor_set_erase_type