|
@@ -523,7 +523,6 @@ static void bnx2x_tpa_stop(struct bnx2x *bp, struct bnx2x_fastpath *fp,
|
|
|
skb = build_skb(data);
|
|
|
|
|
|
if (likely(skb)) {
|
|
|
-
|
|
|
#ifdef BNX2X_STOP_ON_ERROR
|
|
|
if (pad + len > fp->rx_buf_size) {
|
|
|
BNX2X_ERR("skb_put is about to fail... "
|
|
@@ -557,7 +556,7 @@ static void bnx2x_tpa_stop(struct bnx2x *bp, struct bnx2x_fastpath *fp,
|
|
|
|
|
|
return;
|
|
|
}
|
|
|
-
|
|
|
+ kfree(new_data);
|
|
|
drop:
|
|
|
/* drop the packet and keep the buffer in the bin */
|
|
|
DP(NETIF_MSG_RX_STATUS,
|