diff options
| author | 2022-09-20 09:18:41 +0200 | |
|---|---|---|
| committer | 2022-09-20 16:06:42 +0200 | |
| commit | b7df41a6f79dfb18ba2203f8c5f0e9c0b9b57f68 (patch) | |
| tree | b5897fbe58abeae0f90b73c43a7e2715531f2ae6 /tools/scripts/ssh:/git@git.zx2c4.com/git: | |
| parent | Linux 6.0-rc6 (diff) | |
| download | linux-dev-b7df41a6f79dfb18ba2203f8c5f0e9c0b9b57f68.tar.xz linux-dev-b7df41a6f79dfb18ba2203f8c5f0e9c0b9b57f68.zip | |
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>
Diffstat (limited to 'tools/scripts/ssh:/git@git.zx2c4.com/git:')
0 files changed, 0 insertions, 0 deletions
