提交 4b9b0f01 编写于 作者: T Thomas Falcon 提交者: David S. Miller

ibmvnic: Free RX socket buffer in case of adapter error

If a RX buffer is returned to the client driver with an error, free the
corresponding socket buffer before continuing.
Signed-off-by: NThomas Falcon <tlfalcon@linux.vnet.ibm.com>
Signed-off-by: NDavid S. Miller <davem@davemloft.net>
上级 6e4842dd
...@@ -1869,6 +1869,7 @@ static int ibmvnic_poll(struct napi_struct *napi, int budget) ...@@ -1869,6 +1869,7 @@ static int ibmvnic_poll(struct napi_struct *napi, int budget)
be16_to_cpu(next->rx_comp.rc)); be16_to_cpu(next->rx_comp.rc));
/* free the entry */ /* free the entry */
next->rx_comp.first = 0; next->rx_comp.first = 0;
dev_kfree_skb_any(rx_buff->skb);
remove_buff_from_pool(adapter, rx_buff); remove_buff_from_pool(adapter, rx_buff);
continue; continue;
} }
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册