projects
/
openwrt
/
staging
/
blogic.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
6e4842d
)
ibmvnic: Free RX socket buffer in case of adapter error
author
Thomas Falcon
<tlfalcon@linux.vnet.ibm.com>
Wed, 14 Feb 2018 00:23:42 +0000
(18:23 -0600)
committer
David S. Miller
<davem@davemloft.net>
Wed, 14 Feb 2018 19:39:10 +0000
(14:39 -0500)
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>
drivers/net/ethernet/ibm/ibmvnic.c
patch
|
blob
|
history
diff --git
a/drivers/net/ethernet/ibm/ibmvnic.c
b/drivers/net/ethernet/ibm/ibmvnic.c
index 23e0b423025ae5ce14024054a229b55a970df61c..bc93fa2be7faec858e2feacb42038a6277297c33 100644
(file)
--- 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;
}