diff options
author | d binderman <dcb314@hotmail.com> | 2010-01-26 10:00:25 +0000 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@suse.de> | 2010-03-03 16:42:53 -0800 |
commit | e501b36bdf85212d537b30babf60dfedf3fdcebd (patch) | |
tree | e11e614b8617ef56a2182a9e7ec6a68ea270b0ad /drivers | |
parent | 411a861fc4f92cf0f5039928b448dcc7ca31d423 (diff) | |
download | linux-stable-e501b36bdf85212d537b30babf60dfedf3fdcebd.tar.gz linux-stable-e501b36bdf85212d537b30babf60dfedf3fdcebd.tar.bz2 linux-stable-e501b36bdf85212d537b30babf60dfedf3fdcebd.zip |
Staging: otus: fix memory leak
Fix memory leak in drivers/staging/otus
Signed-off-by: David Binderman <dcb314@hotmail.com>
Diffstat (limited to 'drivers')
-rw-r--r-- | drivers/staging/otus/ioctl.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/drivers/staging/otus/ioctl.c b/drivers/staging/otus/ioctl.c index ebaedb7b1688..8c47b1a68627 100644 --- a/drivers/staging/otus/ioctl.c +++ b/drivers/staging/otus/ioctl.c @@ -866,15 +866,15 @@ int usbdrvwext_giwscan(struct net_device *dev, 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 |