summaryrefslogtreecommitdiff
path: root/scripts/objdiff
diff options
context:
space:
mode:
authorJohan Hovold <johan@kernel.org>2026-03-06 09:51:44 +0100
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2026-04-22 13:32:18 +0200
commit25a827b7e1d5747a255bdc757f1d3e9e1e8a4e2a (patch)
tree5771952fe802b59bdb3b8179a61827dbe42d4d01 /scripts/objdiff
parentb9bbd4d2f499a6d5562c842bc36328a1df2fe6c5 (diff)
downloadkernel-25a827b7e1d5747a255bdc757f1d3e9e1e8a4e2a.tar.gz
wifi: rtw88: fix device leak on probe failure
commit bbb15e71156cd9f5e1869eee7207a06ea8e96c39 upstream. Driver core holds a reference to the USB interface and its parent USB device while the interface is bound to a driver and there is no need to take additional references unless the structures are needed after disconnect. This driver takes a reference to the USB device during probe but does not to release it on all probe errors (e.g. when descriptor parsing fails). Drop the redundant device reference to fix the leak, reduce cargo culting, make it easier to spot drivers where an extra reference is needed, and reduce the risk of further memory leaks. Fixes: a82dfd33d123 ("wifi: rtw88: Add common USB chip support") Reported-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org> Link: https://lore.kernel.org/netdev/2026022319-turbofan-darkened-206d@gregkh/ Cc: stable@vger.kernel.org # 6.2 Cc: Sascha Hauer <s.hauer@pengutronix.de> Signed-off-by: Johan Hovold <johan@kernel.org> Signed-off-by: Ping-Ke Shih <pkshih@realtek.com> Link: https://patch.msgid.link/20260306085144.12064-19-johan@kernel.org Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'scripts/objdiff')
0 files changed, 0 insertions, 0 deletions