mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-24 21:54:34 -04:00
staging: rtl8192e: fix memory leak
If the size of the firmware is not as expected then we are jumping to the error path but we missed releasing the firmware. Signed-off-by: Sudip Mukherjee <sudip@vectorindia.org> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
This commit is contained in:
parent
7d05652c5c
commit
60eeb4102e
1 changed files with 1 additions and 0 deletions
|
|
@ -273,6 +273,7 @@ bool rtl92e_init_fw(struct net_device *dev)
|
|||
sizeof(pfirmware->firmware_buf[i])) {
|
||||
RT_TRACE(COMP_FIRMWARE,
|
||||
"img file size exceed the container struct buffer fail!\n");
|
||||
release_firmware(fw_entry);
|
||||
goto download_firmware_fail;
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue