Skip to content

Commit

Permalink
Staging: otus: fix memory leak
Browse files Browse the repository at this point in the history
Fix memory leak in drivers/staging/otus

Signed-off-by: David Binderman <dcb314@hotmail.com>
  • Loading branch information
d binderman authored and Greg Kroah-Hartman committed Mar 4, 2010
1 parent 411a861 commit e501b36
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions drivers/staging/otus/ioctl.c
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit e501b36

Please sign in to comment.