gpio: mockup: Fix potential resource leakage when register a chip
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.15.71 by commit 9b26723e058faaf11b532fb4aa16d6849d581790, it was introduced in version v5.15 by commit 6fda593f3082ef1aa783ac13e89f673fd69a2cb6. For more details please see the references link.