aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/scsi/fnic
diff options
context:
space:
mode:
authorVenkata Siva Vijayendra Bhamidipati <vbhamidi@cisco.com>2011-01-28 19:03:36 -0500
committerJames Bottomley <James.Bottomley@suse.de>2011-02-12 11:58:02 -0500
commitc954f8aed44686569347087a57c75c590ce2782d (patch)
tree011a5df93cc019c17b43e534b48caa5d3e28d020 /drivers/scsi/fnic
parente4a9a98289606392f2b1b24b4ca4e29154ec4d15 (diff)
[SCSI] fnic: fix memory leak
Fix memory leak arising due to incorrect freeing of allocated memory for vnic stats when unregistering a vnic. Signed-off-by: Abhijeet Joglekar <abjoglek@cisco.com> Signed-off-by: Venkata Siva Vijayendra Bhamidipati <vbhamidi@cisco.com> Signed-off-by: Robert Love <robert.w.love@intel.com> Signed-off-by: James Bottomley <James.Bottomley@suse.de>
Diffstat (limited to 'drivers/scsi/fnic')
-rw-r--r--drivers/scsi/fnic/vnic_dev.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/scsi/fnic/vnic_dev.c b/drivers/scsi/fnic/vnic_dev.c
index db710148d156..b576be734e2e 100644
--- a/drivers/scsi/fnic/vnic_dev.c
+++ b/drivers/scsi/fnic/vnic_dev.c
@@ -654,7 +654,7 @@ void vnic_dev_unregister(struct vnic_dev *vdev)
654 vdev->linkstatus_pa); 654 vdev->linkstatus_pa);
655 if (vdev->stats) 655 if (vdev->stats)
656 pci_free_consistent(vdev->pdev, 656 pci_free_consistent(vdev->pdev,
657 sizeof(struct vnic_dev), 657 sizeof(struct vnic_stats),
658 vdev->stats, vdev->stats_pa); 658 vdev->stats, vdev->stats_pa);
659 if (vdev->fw_info) 659 if (vdev->fw_info)
660 pci_free_consistent(vdev->pdev, 660 pci_free_consistent(vdev->pdev,