USB: auerswald possible memleak fix
fix possible memory leak in auerbuf_setup(). Regards, Mariusz Kozlowski Signed-off-by: Mariusz Kozlowski <m.kozlowski@tuxland.pl> Signed-off-by: Wolfgang Muees <wolfgang@iksw-muees.de> Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
This commit is contained in:
parent
0029908ba9
commit
5a3fcf5c7f
1 changed files with 1 additions and 1 deletions
|
@ -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;
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue