]> git.proxmox.com Git - mirror_ubuntu-eoan-kernel.git/commitdiff
ibmvnic: Fix RX queue buffer cleanup
authorThomas Falcon <tlfalcon@linux.ibm.com>
Wed, 21 Nov 2018 17:17:58 +0000 (11:17 -0600)
committerDavid 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

index 27a6df30eafd28e6f2af2b647769e9f0857546ea..066897a350a589a44243d9b66b933bca73546bf6 100644 (file)
@@ -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;
                        }
                }