]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
net: usb: pegasus: fix memory leak in update_eth_regs_async()
authorPetko Manolov <petkan@nucleusys.com>
Tue, 6 Jan 2026 08:48:21 +0000 (10:48 +0200)
committerJakub Kicinski <kuba@kernel.org>
Thu, 8 Jan 2026 16:40:20 +0000 (08:40 -0800)
commitafa27621a28af317523e0836dad430bec551eb54
treef0121427cc8bdf8b92688117b635fda06ae54169
parenta4e305ed60f7c41bbf9aabc16dd75267194e0de3
net: usb: pegasus: fix memory leak in update_eth_regs_async()

When asynchronously writing to the device registers and if usb_submit_urb()
fail, the code fail to release allocated to this point resources.

Fixes: 323b34963d11 ("drivers: net: usb: pegasus: fix control urb submission")
Signed-off-by: Petko Manolov <petkan@nucleusys.com>
Link: https://patch.msgid.link/20260106084821.3746677-1-petko.manolov@konsulko.com
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
drivers/net/usb/pegasus.c