From: Stanislaw Gruszka Date: Tue, 5 May 2009 23:22:12 +0000 (+0000) Subject: bnx2x: do not return negative number of received packages X-Git-Tag: v2.6.31-rc1~14^2~523 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=17cb4006bc40eea949f62adbbad99d8b980c0678;p=platform%2Fkernel%2Flinux-3.10.git bnx2x: do not return negative number of received packages Signed-off-by: Stanislaw Gruszka Acked-by: Eilon Greenstein Signed-off-by: David S. Miller --- diff --git a/drivers/net/bnx2x_main.c b/drivers/net/bnx2x_main.c index 519e207..e01539c 100644 --- a/drivers/net/bnx2x_main.c +++ b/drivers/net/bnx2x_main.c @@ -1546,7 +1546,7 @@ static int bnx2x_rx_int(struct bnx2x_fastpath *fp, int budget) len, cqe, comp_ring_cons); #ifdef BNX2X_STOP_ON_ERROR if (bp->panic) - return -EINVAL; + return 0; #endif bnx2x_update_sge_prod(fp,