mirror of https://gitee.com/openkylin/linux.git
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
|
@ -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 New Issue