summaryrefslogtreecommitdiff
path: root/drivers/leds/leds-netxbig.c
diff options
context:
space:
mode:
authorMichael Chan <michael.chan@broadcom.com>2019-05-22 19:12:54 -0400
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2019-06-11 12:24:07 +0200
commit1d33a3ebd9451f2540ad2bb6425b8e7cc883f2ca (patch)
treea12cc05117bd268e1c459825af1d9379563aed0d /drivers/leds/leds-netxbig.c
parent7d423301240b3621200a4517be4e4073cf3528cf (diff)
bnxt_en: Fix aggregation buffer leak under OOM condition.
[ Upstream commit 296d5b54163964b7ae536b8b57dfbd21d4e868e1 ] For every RX packet, the driver replenishes all buffers used for that packet and puts them back into the RX ring and RX aggregation ring. In one code path where the RX packet has one RX buffer and one or more aggregation buffers, we missed recycling the aggregation buffer(s) if we are unable to allocate a new SKB buffer. This leads to the aggregation ring slowly running out of buffers over time. Fix it by properly recycling the aggregation buffers. Fixes: c0c050c58d84 ("bnxt_en: New Broadcom ethernet driver.") Reported-by: Rakesh Hemnani <rhemnani@fb.com> Signed-off-by: Michael Chan <michael.chan@broadcom.com> Signed-off-by: David S. Miller <davem@davemloft.net> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'drivers/leds/leds-netxbig.c')
0 files changed, 0 insertions, 0 deletions