mtd: Fix device name leak when register device failed in addmtddevice()
This is an automated ID intended to aid in discovery of potential security vulnerabilities. The actual impact and attack plausibility have not yet been proven. This ID is fixed in Linux Kernel version v6.0.16 by commit 1b172fb05d6315ecec082fd7544a3390e96f0d7e, it was introduced in version v2.6.30 by commit 1f24b5a8ecbb2a3c7080f418974d40e3ffedb221. For more details please see the references link.