mtd: core: Fix refcount error in delmtddevice()
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 f6016557f1ef7735963bd8691592d2797bbf91d2, it was introduced in version v5.17 by commit 00596576a05145a1b5672897a82ef87af00becf4. For more details please see the references link.