Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
gpio: mockup: fix NULL pointer dereference when removing debugfs
We now remove the device's debugfs entries when unbinding the driver. This now causes a NULL-pointer dereference on module exit because the platform devices are unregistered *after* the global debugfs directory has been recursively removed. Fix it by unregistering the devices first. Fixes: 303e6da ("gpio: mockup: remove gpio debugfs when remove device") Cc: Wei Yongjun <[email protected]> Cc: [email protected] Signed-off-by: Bartosz Golaszewski <[email protected]>
- Loading branch information