mlx4_en: Consider napi_get_frags() failure.
Subsystems (2)
PATCH 1/2 mlx4_en: Consider napi_get_frags() failure.
If failed to get skb frags using napi_get_frags(), the packet is dropped.
Reported-by Eric Dumazet <[email protected]>
Signed-off-by Yevgeny Petrilin <[email protected]>
--- drivers/net/mlx4/en_rx.c | 2 ++ 1 files changed, 2 insertions(+), 0 deletions(-)
drivers/net/mlx4/en_rx.c +2 -0
@@ -591,6 +591,8 @@ int mlx4_en_process_rx_cq(struct net_device *dev, struct mlx4_en_cq *cq, int bud* - not an IP fragment */ if (dev->features &NETIF_F_GRO ) {struct sk_buff *gro_skb =napi_get_frags (&cq->napi); +if (!gro_skb) + goto next; nr = mlx4_en_complete_rx_desc( priv, rx_desc,
Signature · 1 line
1.6.1.3
From: Yevgeny Petrilin <[email protected]>
Date: Mon, 6 Sep 2010 11:20:11 +0300
Quoted 6 lines
If failed to get skb frags using
napi_get_frags(), the packet is dropped.Reported-by Eric Dumazet <[email protected]>Signed-off-by Yevgeny Petrilin <[email protected]>
Applied.