[PATCH 5.10 140/783] mtd: Fix device name leak when register device failed in add_mtd_device()