From: Sreenivasa Honnur Date: Wed, 1 Jul 2009 21:13:12 +0000 (+0000) Subject: vxge: Fixed memory leak by freeing memory allocated for device_config X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=914d0d714fa472d7f99ef899a8180628ecdcd23c;p=GitHub%2FLineageOS%2Fandroid_kernel_motorola_exynos9610.git vxge: Fixed memory leak by freeing memory allocated for device_config - Fixed memory leak by freeing memory allocated for device_config. Signed-off-by: Sreenivasa Honnur Signed-off-by: Ramkrishna Vepa Signed-off-by: David S. Miller --- diff --git a/drivers/net/vxge/vxge-main.c b/drivers/net/vxge/vxge-main.c index 8a3c7b327cf6..fa4dbc89e270 100644 --- a/drivers/net/vxge/vxge-main.c +++ b/drivers/net/vxge/vxge-main.c @@ -4348,6 +4348,7 @@ vxge_probe(struct pci_dev *pdev, const struct pci_device_id *pre) vdev->vpaths[i].mac_addr_cnt = 1; } + kfree(device_config); vxge_debug_entryexit(VXGE_TRACE, "%s: %s:%d Exiting...", vdev->ndev->name, __func__, __LINE__);