aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/gpu/drm/amd/amdgpu/amdgpu_gtt_mgr.c
diff options
context:
space:
mode:
authorTomasz Duszynski <[email protected]>2021-04-23 08:02:44 +0000
committerJonathan Cameron <[email protected]>2021-05-10 13:01:48 +0000
commit901f84de0e16bde10a72d7eb2f2eb73fcde8fa1a (patch)
tree0d7258d54e48ab45271c6fa0382f4ad64f232151 /drivers/gpu/drm/amd/amdgpu/amdgpu_gtt_mgr.c
parentiio: gyro: mpu3050: Fix reported temperature value (diff)
downloadkernel-901f84de0e16bde10a72d7eb2f2eb73fcde8fa1a.tar.gz
kernel-901f84de0e16bde10a72d7eb2f2eb73fcde8fa1a.zip
iio: core: fix ioctl handlers removal
Currently ioctl handlers are removed twice. For the first time during iio_device_unregister() then later on inside iio_device_unregister_eventset() and iio_buffers_free_sysfs_and_mask(). Double free leads to kernel panic. Fix this by not touching ioctl handlers list directly but rather letting code responsible for registration call the matching cleanup routine itself. Fixes: 8dedcc3eee3ac ("iio: core: centralize ioctl() calls to the main chardev") Signed-off-by: Tomasz Duszynski <[email protected]> Acked-by: Alexandru Ardelean <[email protected]> Cc: <[email protected]> Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Jonathan Cameron <[email protected]>
Diffstat (limited to 'drivers/gpu/drm/amd/amdgpu/amdgpu_gtt_mgr.c')
0 files changed, 0 insertions, 0 deletions