aboutsummaryrefslogtreecommitdiffstats
path: root/include/linux/patchkey.h
diff options
context:
space:
mode:
authorSudip Mukherjee <sudipm.mukherjee@gmail.com>2016-09-04 20:30:18 +0530
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2016-09-12 11:01:52 +0200
commit369e1b69c1a2ed9fb66cfd2a6fe2f7340c64cd49 (patch)
tree4d7510c2c8b2ef9f36d1ebc9bdaaa9cb770f2e7e /include/linux/patchkey.h
parentstaging: most: hdm-usb: remove repeated access to structure (diff)
staging: ks7010: return on failure
On failure we were jumping to error_out0 where we were trying sdio_release_host() but at this point of execution we still have not done sdio_claim_host() and as a result host->claimed can still be 0. And if host->claimed is 0 then WARN_ON(!host->claimed) will give a warning. Moreover, if it is still not claimed then mmc_host->claim_cnt will be 0 and mmc_release_host() will do "if (--host->claim_cnt)" and thus the condition will become true. Lets just return the value on allocation failure instead of trying to release the host before claiming it. Signed-off-by: Sudip Mukherjee <sudip.mukherjee@codethink.co.uk> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'include/linux/patchkey.h')
0 files changed, 0 insertions, 0 deletions