]> git.proxmox.com Git - mirror_ubuntu-hirsute-kernel.git/commit
net: lan78xx: fix transfer-buffer memory leak
authorJohan Hovold <johan@kernel.org>
Tue, 28 Jul 2020 12:10:30 +0000 (14:10 +0200)
committerDavid S. Miller <davem@davemloft.net>
Tue, 28 Jul 2020 20:35:44 +0000 (13:35 -0700)
commit63634aa679ba8b5e306ad0727120309ae6ba8a8e
treefd008e7972ed161a96e3bd23556c72e1d22e5b4f
parent8d8e95fd6d69d774013f51e5f2ee10c6e6d1fc14
net: lan78xx: fix transfer-buffer memory leak

The interrupt URB transfer-buffer was never freed on disconnect or after
probe errors.

Fixes: 55d7de9de6c3 ("Microchip's LAN7800 family USB 2/3 to 10/100/1000 Ethernet device driver")
Cc: Woojung.Huh@microchip.com <Woojung.Huh@microchip.com>
Signed-off-by: Johan Hovold <johan@kernel.org>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/usb/lan78xx.c