mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-28 02:32:09 -04:00
USB: whiteheat: fix memory leak in error path
Make sure command buffer is deallocated in case of errors during attach. Cc: <[email protected]> Cc: <[email protected]> Signed-off-by: Johan Hovold <[email protected]> Signed-off-by: Greg Kroah-Hartman <[email protected]>
This commit is contained in:
parent
2ee44fbeac
commit
c129197c99
1 changed files with 1 additions and 0 deletions
|
|
@ -333,6 +333,7 @@ no_firmware:
|
|||
"%s: please contact [email protected]\n",
|
||||
serial->type->description);
|
||||
kfree(result);
|
||||
kfree(command);
|
||||
return -ENODEV;
|
||||
|
||||
no_command_private:
|
||||
|
|
|
|||
Loading…
Reference in a new issue