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 v5.10.163 by commit 330bc5533e8a8ed69cb951d5a8edce9bddb9db21, it was introduced in version v2.6.30 by commit 1f24b5a8ecbb2a3c7080f418974d40e3ffedb221. For more details please see the references link.