]> git.baikalelectronics.ru Git - kernel.git/commit
qed: Fix possible memory leak in Rx error path handling.
authorSudarsana Reddy Kalluru <sudarsana.kalluru@cavium.com>
Tue, 19 Jun 2018 04:58:00 +0000 (21:58 -0700)
committerDavid S. Miller <davem@davemloft.net>
Tue, 19 Jun 2018 22:15:34 +0000 (07:15 +0900)
commitb48703d13b9131938e8c3f705c31aa432e01189d
treec7ac1009f5f1c6fb14899c2536cdf1e3fde07398
parent458206e51ff77472d288781347ca15e1e827c156
qed: Fix possible memory leak in Rx error path handling.

Memory for packet buffers need to be freed in the error paths as there is
no consumer (e.g., upper layer) for such packets and that memory will never
get freed.
The issue was uncovered when port was attacked with flood of isatap
packets, these are multicast packets hence were directed at all the PFs.
For foce PF, this meant they were routed to the ll2 module which in turn
drops such packets.

Fixes: 25f6af4f ("qed: Add Light L2 support")
Signed-off-by: Sudarsana Reddy Kalluru <Sudarsana.Kalluru@cavium.com>
Signed-off-by: Ariel Elior <ariel.elior@cavium.com>
Signed-off-by: Michal Kalderon <Michal.Kalderon@cavium.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/qlogic/qed/qed_ll2.c