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:
6d0f60b
)
ibmvnic: Fix RX queue buffer cleanup
author
Thomas Falcon
<tlfalcon@linux.ibm.com>
Wed, 21 Nov 2018 17:17:58 +0000
(11:17 -0600)
committer
David S. Miller
<davem@davemloft.net>
Thu, 22 Nov 2018 19:53:25 +0000
(11:53 -0800)
The wrong index is used when cleaning up RX buffer objects during release
of RX queues. Update to use the correct index counter.
Signed-off-by: Thomas Falcon <tlfalcon@linux.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 27a6df30eafd28e6f2af2b647769e9f0857546ea..066897a350a589a44243d9b66b933bca73546bf6 100644
(file)
--- a/
drivers/net/ethernet/ibm/ibmvnic.c
+++ b/
drivers/net/ethernet/ibm/ibmvnic.c
@@
-485,8
+485,8
@@
static void release_rx_pools(struct ibmvnic_adapter *adapter)
for (j = 0; j < rx_pool->size; j++) {
if (rx_pool->rx_buff[j].skb) {
- dev_kfree_skb_any(rx_pool->rx_buff[
i
].skb);
- rx_pool->rx_buff[
i
].skb = NULL;
+ dev_kfree_skb_any(rx_pool->rx_buff[
j
].skb);
+ rx_pool->rx_buff[
j
].skb = NULL;
}
}