[net-next-2.6,2/9] vxge: Fixed memory leak by freeing memory allocated for device_config

Message ID Pine.GSO.4.10.10907020312280.13763-100000@guinness
State Accepted, archived
Delegated to: David Miller
Headers show

Commit Message

Sreenivasa Honnur July 2, 2009, 7:13 a.m.
- Fixed memory leak by freeing memory allocated for device_config.

Signed-off-by: Sreenivasa Honnur <sreenivasa.honnur@neterion.com>
Signed-off-by: Ramkrishna Vepa <ram.vepa@neterion.com>


To unsubscribe from this list: send the line "unsubscribe netdev" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html


diff -urpN patch_1/drivers/net/vxge/vxge-main.c patch_2/drivers/net/vxge/vxge-main.c
--- patch_1/drivers/net/vxge/vxge-main.c	2009-06-21 23:32:44.000000000 -0700
+++ patch_2/drivers/net/vxge/vxge-main.c	2009-06-21 23:43:43.000000000 -0700
@@ -4348,6 +4348,7 @@  vxge_probe(struct pci_dev *pdev, const s
 		vdev->vpaths[i].mac_addr_cnt = 1;
+	kfree(device_config);
 	vxge_debug_entryexit(VXGE_TRACE, "%s: %s:%d  Exiting...",
 		vdev->ndev->name, __func__, __LINE__);