]> git.baikalelectronics.ru Git - 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)
commit5f3836762c57b1f8bf5d0607d2eaffd6bfa82f8a
treefd008e7972ed161a96e3bd23556c72e1d22e5b4f
parente6bf0123df8465ceab5c939f636812342db060d6
net: lan78xx: fix transfer-buffer memory leak

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

Fixes: f98af78833e9 ("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