]> 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>
Sat, 17 Jan 2026 15:31:25 +0000 (16:31 +0100)
commit471dfb97599eec74e0476046b3ef8e7037f27b34
tree5b8ddc4f7bf809d97f3b8aad7656dde52c6f0848
parent43497313d0da3e12b5cfcd97aa17bf48ee663f95
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