mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-11 15:11:48 -04:00
staging: ks7010: fix memory leak
If the firmware request failed we were just returning but we missed freeing the memory and releasing the MMC Host. Signed-off-by: Sudip Mukherjee <sudip.mukherjee@codethink.co.uk> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
This commit is contained in:
parent
369e1b69c1
commit
b80cfea24b
1 changed files with 1 additions and 1 deletions
|
|
@ -791,7 +791,7 @@ static int ks7010_upload_firmware(struct ks_wlan_private *priv,
|
|||
|
||||
retval = request_firmware(&fw_entry, ROM_FILE, &priv->ks_wlan_hw.sdio_card->func->dev);
|
||||
if (retval)
|
||||
return retval;
|
||||
goto error_out0;
|
||||
|
||||
length = fw_entry->size;
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue