From patchwork Thu Jul 2 07:13:12 2009 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Sreenivasa Honnur X-Patchwork-Id: 29396 X-Patchwork-Delegate: davem@davemloft.net Return-Path: X-Original-To: patchwork-incoming@bilbo.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Received: from ozlabs.org (ozlabs.org [203.10.76.45]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (Client CN "mx.ozlabs.org", Issuer "CA Cert Signing Authority" (verified OK)) by bilbo.ozlabs.org (Postfix) with ESMTPS id 112E4B70F6 for ; Thu, 2 Jul 2009 17:27:10 +1000 (EST) Received: by ozlabs.org (Postfix) id 03B72DDD01; Thu, 2 Jul 2009 17:27:10 +1000 (EST) Delivered-To: patchwork-incoming@ozlabs.org Received: from vger.kernel.org (vger.kernel.org [209.132.176.167]) by ozlabs.org (Postfix) with ESMTP id 89EF5DDDE5 for ; Thu, 2 Jul 2009 17:27:09 +1000 (EST) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752749AbZGBH0u (ORCPT ); Thu, 2 Jul 2009 03:26:50 -0400 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S1753090AbZGBH0s (ORCPT ); Thu, 2 Jul 2009 03:26:48 -0400 Received: from barracuda.s2io.com ([72.1.205.138]:37774 "EHLO barracuda.s2io.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752608AbZGBH0m (ORCPT ); Thu, 2 Jul 2009 03:26:42 -0400 X-ASG-Debug-ID: 1246518792-428200240000-gSecQ8 X-Barracuda-URL: http://72.1.205.138:8000/cgi-bin/mark.cgi Received: from guinness.s2io.com (localhost [127.0.0.1]) by barracuda.s2io.com (Spam Firewall) with ESMTP id 892FF2003701; Thu, 2 Jul 2009 03:13:12 -0400 (EDT) Received: from guinness.s2io.com (142-46-210.147.tel-ott.com [142.46.210.147]) by barracuda.s2io.com with ESMTP id OndUnMXRuxX6g7pD; Thu, 02 Jul 2009 03:13:12 -0400 (EDT) X-Barracuda-Envelope-From: Sreenivasa.Honnur@neterion.com X-ASG-Whitelist: Client Received: from guinness.s2io.com (localhost [127.0.0.1]) by guinness.s2io.com (8.12.6/8.12.6) with ESMTP id n627DCmd013970; Thu, 2 Jul 2009 03:13:12 -0400 (EDT) Received: from localhost (shonnur@localhost) by guinness.s2io.com (8.12.6/8.12.6/Submit) with ESMTP id n627DCUQ013967; Thu, 2 Jul 2009 03:13:12 -0400 (EDT) Date: Thu, 2 Jul 2009 03:13:12 -0400 (EDT) From: Sreenivasa Honnur To: davem@davemloft.net cc: netdev@vger.kernel.org, support@neterion.com X-ASG-Orig-Subj: [net-next-2.6 PATCH 2/9] vxge: Fixed memory leak by freeing memory allocated for device_config Subject: [net-next-2.6 PATCH 2/9] vxge: Fixed memory leak by freeing memory allocated for device_config Message-ID: MIME-Version: 1.0 X-Barracuda-Connect: 142-46-210.147.tel-ott.com[142.46.210.147] X-Barracuda-Start-Time: 1246518795 X-Barracuda-Virus-Scanned: by Barracuda Spam Firewall at s2io.com Sender: netdev-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: netdev@vger.kernel.org - Fixed memory leak by freeing memory allocated for device_config. Signed-off-by: Sreenivasa Honnur Signed-off-by: Ramkrishna Vepa --- -- 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__);