diff options
author | Thomas Falcon | 2018-02-13 18:23:42 -0600 |
---|---|---|
committer | David S. Miller | 2018-02-14 14:39:10 -0500 |
commit | 4b9b0f01350500173f17e2b2e65beb4df4ef99c7 (patch) | |
tree | b1174303f9bdf17b60392d8aa58d5ddd116e761f /drivers/net | |
parent | 6e4842ddfc2b08931ebd6c0bc95322dd56e5232b (diff) |
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: Thomas Falcon <tlfalcon@linux.vnet.ibm.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'drivers/net')
-rw-r--r-- | drivers/net/ethernet/ibm/ibmvnic.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/net/ethernet/ibm/ibmvnic.c b/drivers/net/ethernet/ibm/ibmvnic.c index 23e0b423025a..bc93fa2be7fa 100644 --- a/drivers/net/ethernet/ibm/ibmvnic.c +++ b/drivers/net/ethernet/ibm/ibmvnic.c @@ -1869,6 +1869,7 @@ restart_poll: be16_to_cpu(next->rx_comp.rc)); /* free the entry */ next->rx_comp.first = 0; + dev_kfree_skb_any(rx_buff->skb); remove_buff_from_pool(adapter, rx_buff); continue; } |