gpio: mockup: fix NULL pointer dereference when removing debugfs
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.146 by commit bdea98b98f844bd8a983ca880893e509a8b4162f, it was introduced in version v5.10.144 by commit 3815e66c2183f3430490e450ba16779cf5214ec6. For more details please see the references link.