]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph-client.git/commit
gpib: lpvo_usb: fix memory leak on disconnect
authorJohan Hovold <johan@kernel.org>
Tue, 10 Mar 2026 10:51:27 +0000 (11:51 +0100)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 2 Apr 2026 12:30:30 +0000 (14:30 +0200)
commit5cefb52c1af6f69ea719e42788f6ec6a087eb74c
tree8ed6afc0bbc5453739a34781748a00f5f91a4b89
parent579af7204d762587f9cce0d6236a710a771f1f6f
gpib: lpvo_usb: fix memory leak on disconnect

The driver iterates over the registered USB interfaces during GPIB
attach and takes a reference to their USB devices until a match is
found. These references are never released which leads to a memory leak
when devices are disconnected.

Fix the leak by dropping the unnecessary references.

Fixes: fce79512a96a ("staging: gpib: Add LPVO DIY USB GPIB driver")
Cc: stable <stable@kernel.org> # 6.13
Cc: Dave Penkler <dpenkler@gmail.com>
Signed-off-by: Johan Hovold <johan@kernel.org>
Link: https://patch.msgid.link/20260310105127.17538-1-johan@kernel.org
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/gpib/lpvo_usb_gpib/lpvo_usb_gpib.c