Commit 5a3fcf5c authored by Mariusz Kozlowski's avatar Mariusz Kozlowski Committed by Greg Kroah-Hartman

USB: auerswald possible memleak fix

fix possible memory leak in auerbuf_setup().

Regards,

	Mariusz Kozlowski
Signed-off-by: default avatarMariusz Kozlowski <m.kozlowski@tuxland.pl>
Signed-off-by: default avatarWolfgang Muees <wolfgang@iksw-muees.de>
Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@suse.de>
parent 0029908b
...@@ -780,7 +780,7 @@ static int auerbuf_setup (pauerbufctl_t bcp, unsigned int numElements, unsigned ...@@ -780,7 +780,7 @@ static int auerbuf_setup (pauerbufctl_t bcp, unsigned int numElements, unsigned
bl_fail:/* not enough memory. Free allocated elements */ bl_fail:/* not enough memory. Free allocated elements */
dbg ("auerbuf_setup: no more memory"); dbg ("auerbuf_setup: no more memory");
kfree(bep); auerbuf_free(bep);
auerbuf_free_buffers (bcp); auerbuf_free_buffers (bcp);
return -ENOMEM; return -ENOMEM;
} }
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment