Commit e501b36b authored by d binderman's avatar d binderman Committed by Greg Kroah-Hartman

Staging: otus: fix memory leak

Fix memory leak in drivers/staging/otus
Signed-off-by: default avatarDavid Binderman <dcb314@hotmail.com>
parent 411a861f
...@@ -866,15 +866,15 @@ int usbdrvwext_giwscan(struct net_device *dev, ...@@ -866,15 +866,15 @@ int usbdrvwext_giwscan(struct net_device *dev,
char *current_ev = extra; char *current_ev = extra;
char *end_buf; char *end_buf;
int i; int i;
/* struct zsBssList BssList; */
struct zsBssListV1 *pBssList = kmalloc(sizeof(struct zsBssListV1),
GFP_KERNEL);
/* BssList = wd->sta.pBssList; */ /* BssList = wd->sta.pBssList; */
/* zmw_get_wlan_dev(dev); */ /* zmw_get_wlan_dev(dev); */
if (macp->DeviceOpened != 1) if (macp->DeviceOpened != 1)
return 0; return 0;
/* struct zsBssList BssList; */
struct zsBssListV1 *pBssList = kmalloc(sizeof(struct zsBssListV1),
GFP_KERNEL);
if (data->length == 0) if (data->length == 0)
end_buf = extra + IW_SCAN_MAX_DATA; end_buf = extra + IW_SCAN_MAX_DATA;
else else
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment