Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

[PATCH] RE: Linux kernel 2.6.33-rc5 bug report

1 view
Skip to first unread message

d binderman

unread,
Jan 25, 2010, 5:30:01 AM1/25/10
to

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 <dcb...@hotmail.com>

Fix memory leak in drivers/staging/otus

Signed-off-by: David Binderman <dcb...@hotmail.com>

---


--- 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 majo...@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/

Greg KH

unread,
Jan 25, 2010, 11:30:01 PM1/25/10
to
On Mon, Jan 25, 2010 at 10:16:55AM +0000, d binderman wrote:
>
>
> 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 <dcb...@hotmail.com>
>
> Fix memory leak in drivers/staging/otus
>
> Signed-off-by: David Binderman <dcb...@hotmail.com>
>
> ---
>
>
> --- 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; */

Very wierd characters here, can you attach the patch instead?

thanks,

greg k-h

0 new messages