提交 e501b36b 编写于 作者: D d binderman 提交者: Greg Kroah-Hartman

Staging: otus: fix memory leak

Fix memory leak in drivers/staging/otus
Signed-off-by: NDavid Binderman <dcb314@hotmail.com>
上级 411a861f
......@@ -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
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册