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:
46d054f
)
ibmvnic: Unmap ibmvnic_statistics structure
author
Thomas Falcon
<tlfalcon@linux.vnet.ibm.com>
Fri, 11 Nov 2016 17:00:45 +0000
(11:00 -0600)
committer
David S. Miller
<davem@davemloft.net>
Sun, 13 Nov 2016 18:42:35 +0000
(13:42 -0500)
This structure was mapped but never subsequently unmapped.
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 f6c9b6d38ac75e4c23d2d54c9c911dbcfb23ef49..921c40fad1c3e28654e7442724d1446c2d5d9b47 100644
(file)
--- a/
drivers/net/ethernet/ibm/ibmvnic.c
+++ b/
drivers/net/ethernet/ibm/ibmvnic.c
@@
-3844,6
+3844,9
@@
static int ibmvnic_remove(struct vio_dev *dev)
if (adapter->debugfs_dir && !IS_ERR(adapter->debugfs_dir))
debugfs_remove_recursive(adapter->debugfs_dir);
+ dma_unmap_single(&dev->dev, adapter->stats_token,
+ sizeof(struct ibmvnic_statistics), DMA_FROM_DEVICE);
+
if (adapter->ras_comps)
dma_free_coherent(&dev->dev,
adapter->ras_comp_num *