提交 f31158c9 编写于 作者: D Diego Calleja 提交者: Greg Kroah-Hartman

Staging: Fix leak in drivers/staging/at76_usb.c

Fix leak in at76_usb as reported in:
http://bugzilla.kernel.org/show_bug.cgi?id=11778Reported-by: NDaniel Marjamäki <danielm77@spray.se>
Signed-off-by: NDiego Calleja <diegocg@gmail.com>
Signed-off-by: NGreg Kroah-Hartman <gregkh@suse.de>
上级 19cbd3d7
......@@ -2319,9 +2319,11 @@ static int at76_iw_handler_get_scan(struct net_device *netdev,
if (!iwe)
return -ENOMEM;
if (priv->scan_state != SCAN_COMPLETED)
if (priv->scan_state != SCAN_COMPLETED) {
/* scan not yet finished */
kfree(iwe);
return -EAGAIN;
}
spin_lock_irqsave(&priv->bss_list_spinlock, flags);
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册