]> git.ipfire.org Git - thirdparty/kernel/stable.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)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Mon, 19 Jan 2026 12:10:17 +0000 (13:10 +0100)
commita40af9a2904a1ab8ce61866ebe2a894ef30754ba
treed692fff668b8cfa30eb203e37b20649bceaf9ac8
parent0809c4bc06c9c961222df29f2eccfd449304056f
net: usb: pegasus: fix memory leak in update_eth_regs_async()

[ Upstream commit afa27621a28af317523e0836dad430bec551eb54 ]

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>
Signed-off-by: Sasha Levin <sashal@kernel.org>
drivers/net/usb/pegasus.c