summaryrefslogtreecommitdiff
path: root/drivers/net/ethernet/qlogic/qed/qed_main.c
diff options
context:
space:
mode:
authorSudarsana Reddy Kalluru <sudarsana.kalluru@cavium.com>2018-06-18 21:58:00 -0700
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2018-08-24 13:09:01 +0200
commit26c6ffff8eec39bb8b767a81c7d8f28f54712919 (patch)
treeafc988b1216a68f7816d3a91cba04faea7f104c3 /drivers/net/ethernet/qlogic/qed/qed_main.c
parentd22240dd6ab34a69d8e6f07fd74bd53270b554fa (diff)
qed: Fix possible memory leak in Rx error path handling.
[ Upstream commit 4f9de4df901fb84709fe3a864dfa4eaf35700f68 ] 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: 0a7fb11c ("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> Signed-off-by: Sasha Levin <alexander.levin@microsoft.com> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'drivers/net/ethernet/qlogic/qed/qed_main.c')
0 files changed, 0 insertions, 0 deletions