staging: ks7010: fix memory leak
authorSudip Mukherjee <sudipm.mukherjee@gmail.com>
Sun, 4 Sep 2016 15:00:19 +0000 (20:30 +0530)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Mon, 12 Sep 2016 09:01:52 +0000 (11:01 +0200)
commitb80cfea24b02bcdc94cdbf67091d7b1c27ba6cd4
tree548d1f65824fbc666500e782edfdc7901494dd78
parent369e1b69c1a2ed9fb66cfd2a6fe2f7340c64cd49
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>
drivers/staging/ks7010/ks7010_sdio.c