Searched hist:b7df41a6f79dfb18ba2203f8c5f0e9c0b9b57f68 (Results 1 – 1 of 1) sorted by relevance
/openbmc/linux/drivers/gpio/ |
H A D | gpio-mockup.c | diff b7df41a6f79dfb18ba2203f8c5f0e9c0b9b57f68 Tue Sep 20 02:18:41 CDT 2022 Bartosz Golaszewski <brgl@bgdev.pl> 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: 303e6da99429 ("gpio: mockup: remove gpio debugfs when remove device") Cc: Wei Yongjun <weiyongjun1@huawei.com> Cc: stable@vger.kernel.org Signed-off-by: Bartosz Golaszewski <brgl@bgdev.pl>
|