1
0
Fork 0

Staging: otus: fix memory leak

Fix memory leak in drivers/staging/otus

Signed-off-by: David Binderman <dcb314@hotmail.com>
hifive-unleashed-5.1
d binderman 2010-01-26 10:00:25 +00:00 committed by Greg Kroah-Hartman
parent 411a861fc4
commit e501b36bdf
1 changed files with 3 additions and 3 deletions

View File

@ -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