Skip to content

Commit

Permalink
USB: auerswald possible memleak fix
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Mariusz Kozlowski authored and Greg Kroah-Hartman committed Nov 16, 2006
1 parent 0029908 commit 5a3fcf5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion drivers/usb/misc/auerswald.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}
Expand Down

0 comments on commit 5a3fcf5

Please sign in to comment.