mirror of
https://github.com/edk2-porting/linux-next.git
synced 2024-12-19 02:34:01 +08:00
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
@ -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 New Issue
Block a user