提交 95ad0724 编写于 作者: D Daeseok Youn 提交者: Greg Kroah-Hartman

staging: frontier: fix memory leak in usb_alphatrack_probe()

oldi_buffer and write_buffer need to free when usb_alphatrack_delete()
is called.
Signed-off-by: NDaeseok Youn <daeseok.youn@gmail.com>
Signed-off-by: NGreg Kroah-Hartman <gregkh@linuxfoundation.org>
上级 61b0f7e5
...@@ -208,7 +208,9 @@ static void usb_alphatrack_delete(struct usb_alphatrack *dev) ...@@ -208,7 +208,9 @@ static void usb_alphatrack_delete(struct usb_alphatrack *dev)
kfree(dev->ring_buffer); kfree(dev->ring_buffer);
kfree(dev->interrupt_in_buffer); kfree(dev->interrupt_in_buffer);
kfree(dev->interrupt_out_buffer); kfree(dev->interrupt_out_buffer);
kfree(dev); /* fixme oldi_buffer */ kfree(dev->oldi_buffer);
kfree(dev->write_buffer);
kfree(dev);
} }
/** usb_alphatrack_interrupt_in_callback */ /** usb_alphatrack_interrupt_in_callback */
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册