提交 5a3fcf5c 编写于 作者: M Mariusz Kozlowski 提交者: Greg Kroah-Hartman

USB: auerswald possible memleak fix

fix possible memory leak in auerbuf_setup().

Regards,

	Mariusz Kozlowski
Signed-off-by: NMariusz Kozlowski <m.kozlowski@tuxland.pl>
Signed-off-by: NWolfgang Muees <wolfgang@iksw-muees.de>
Signed-off-by: NGreg Kroah-Hartman <gregkh@suse.de>
上级 0029908b
......@@ -780,7 +780,7 @@ static int auerbuf_setup (pauerbufctl_t bcp, unsigned int numElements, unsigned
bl_fail:/* not enough memory. Free allocated elements */
dbg ("auerbuf_setup: no more memory");
kfree(bep);
auerbuf_free(bep);
auerbuf_free_buffers (bcp);
return -ENOMEM;
}
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册