Commit b7f193da authored by Thomas Falcon's avatar Thomas Falcon Committed by David S. Miller

ibmvnic: Unmap ibmvnic_statistics structure

This structure was mapped but never subsequently unmapped.
Signed-off-by: default avatarThomas Falcon <tlfalcon@linux.vnet.ibm.com>
Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
parent 46d054f8
...@@ -3844,6 +3844,9 @@ static int ibmvnic_remove(struct vio_dev *dev) ...@@ -3844,6 +3844,9 @@ static int ibmvnic_remove(struct vio_dev *dev)
if (adapter->debugfs_dir && !IS_ERR(adapter->debugfs_dir)) if (adapter->debugfs_dir && !IS_ERR(adapter->debugfs_dir))
debugfs_remove_recursive(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) if (adapter->ras_comps)
dma_free_coherent(&dev->dev, dma_free_coherent(&dev->dev,
adapter->ras_comp_num * adapter->ras_comp_num *
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment