diff options
author | Justin Chen <justin.chen@broadcom.com> | 2024-04-18 21:05:41 +0300 |
---|---|---|
committer | Jakub Kicinski <kuba@kernel.org> | 2024-04-20 06:32:29 +0300 |
commit | 9f898fc2c31fbf0ac5ecd289f528a716464cb005 (patch) | |
tree | 1d5a832849dfb6aeb83b0156724527038d7fe2ef /net/dsa/tag_ar9331.c | |
parent | 680d11f6e5427b6af1321932286722d24a8b16c1 (diff) | |
download | linux-9f898fc2c31fbf0ac5ecd289f528a716464cb005.tar.xz |
net: bcmasp: fix memory leak when bringing down interface
When bringing down the TX rings we flush the rings but forget to
reclaimed the flushed packets. This leads to a memory leak since we
do not free the dma mapped buffers. This also leads to tx control
block corruption when bringing down the interface for power
management.
Fixes: 490cb412007d ("net: bcmasp: Add support for ASP2.0 Ethernet controller")
Signed-off-by: Justin Chen <justin.chen@broadcom.com>
Acked-by: Florian Fainelli <florian.fainelli@broadcom.com>
Reviewed-by: Simon Horman <horms@kernel.org>
Link: https://lore.kernel.org/r/20240418180541.2271719-1-justin.chen@broadcom.com
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
Diffstat (limited to 'net/dsa/tag_ar9331.c')
0 files changed, 0 insertions, 0 deletions