Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753514Ab0AYKXM (ORCPT ); Mon, 25 Jan 2010 05:23:12 -0500 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S1751229Ab0AYKXL (ORCPT ); Mon, 25 Jan 2010 05:23:11 -0500 Received: from blu0-omc1-s27.blu0.hotmail.com ([65.55.116.38]:11293 "EHLO blu0-omc1-s27.blu0.hotmail.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753256Ab0AYKXK convert rfc822-to-8bit (ORCPT ); Mon, 25 Jan 2010 05:23:10 -0500 X-Greylist: delayed 373 seconds by postgrey-1.27 at vger.kernel.org; Mon, 25 Jan 2010 05:23:10 EST Message-ID: X-Originating-IP: [87.81.120.187] From: d binderman To: CC: Subject: [PATCH] RE: Linux kernel 2.6.33-rc5 bug report Date: Mon, 25 Jan 2010 10:16:55 +0000 Importance: Normal In-Reply-To: <20100125060850.GA23232@suse.de> References: ,<20100125060850.GA23232@suse.de> Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 8BIT MIME-Version: 1.0 X-OriginalArrivalTime: 25 Jan 2010 10:16:55.0116 (UTC) FILETIME=[851278C0:01CA9DA7] Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1700 Lines: 51 Hello there, Greg wrote: > Care to make up a patch to fix this issue? Here is an untested trivial patch to fix a memory leak in Linux kernel 2.6.33-rc5 directory drivers/staging/otus From: David Binderman Fix memory leak in drivers/staging/otus Signed-off-by: David Binderman --- --- drivers/staging/otus/ioctl.c.sav??? 2010-01-25 09:45:30.000000000 +0000 +++ drivers/staging/otus/ioctl.c??????? 2010-01-25 09:55:56.000000000 +0000 @@ -866,15 +866,15 @@ int usbdrvwext_giwscan(struct net_device ??????? char *current_ev = extra; ??????? char *end_buf; ??????? int i; -?????? /* struct zsBssList BssList; */ -?????? struct zsBssListV1 *pBssList = kmalloc(sizeof(struct zsBssListV1), -?????????????????????????????????????????????????????????????? GFP_KERNEL); ??????? /* BssList = wd->sta.pBssList; */ ??????? /* zmw_get_wlan_dev(dev); */ ??????? if (macp->DeviceOpened != 1) ??????????????? return 0; +?????? /* struct zsBssList BssList; */ +?????? struct zsBssListV1 *pBssList = kmalloc(sizeof(struct zsBssListV1), +?????????????????????????????????????????????????????????????? GFP_KERNEL); ??????? if (data->length == 0) ??????????????? end_buf = extra + IW_SCAN_MAX_DATA; ??????? else _________________________________________________________________ We want to hear all your funny, exciting and crazy Hotmail stories. Tell us now http://clk.atdmt.com/UKM/go/195013117/direct/01/-- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/