summaryrefslogtreecommitdiff
path: root/scripts/gdb/linux/xarray.py
diff options
context:
space:
mode:
authorMa Ke <make24@iscas.ac.cn>2025-09-23 04:36:03 +0300
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2025-10-29 16:10:31 +0300
commitfc48755c0f8e488284b764d902fa353e1325a5d3 (patch)
treea04afc354c818324cc913fa48c23037e19769562 /scripts/gdb/linux/xarray.py
parentea5ea27dedfd1f5c94bdb7cd38630561f1645b1e (diff)
downloadlinux-fc48755c0f8e488284b764d902fa353e1325a5d3.tar.xz
staging: gpib: Fix device reference leak in fmh_gpib driver
commit b1aabb8ef09b4cf0cc0c92ca9dfd19482f3192c1 upstream. The fmh_gpib driver contains a device reference count leak in fmh_gpib_attach_impl() where driver_find_device() increases the reference count of the device by get_device() when matching but this reference is not properly decreased. Add put_device() in fmh_gpib_detach(), which ensures that the reference count of the device is correctly managed. Found by code review. Cc: stable <stable@kernel.org> Fixes: 8e4841a0888c ("staging: gpib: Add Frank Mori Hess FPGA PCI GPIB driver") Signed-off-by: Ma Ke <make24@iscas.ac.cn> Reviewed-by: Dan Carpenter <dan.carpenter@linaro.org> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'scripts/gdb/linux/xarray.py')
0 files changed, 0 insertions, 0 deletions