]> git.baikalelectronics.ru Git - kernel.git/commit
mmc: block: return error on failed mmc_blk_get()
authorOlof Johansson <olof@lixom.net>
Tue, 9 Feb 2016 17:34:30 +0000 (09:34 -0800)
committerUlf Hansson <ulf.hansson@linaro.org>
Wed, 10 Feb 2016 08:12:34 +0000 (09:12 +0100)
commit8e5060171b835e6aa157ec789d36368110b97547
tree2b84549a442e013caa9dbf961b73405194c3878e
parentdafb7cb33870dcb5bfa3e1a0499a43c38005b5f4
mmc: block: return error on failed mmc_blk_get()

This used to return -EFAULT, but the function above returns -EINVAL on
the same condition so let's stick to that.

The removal of error return on this path was introduced with f4affe850e39
('mmc: block: copy resp[] data on err for MMC_IOC_MULTI_CMD').

Fixes: f4affe850e39 ('mmc: block: copy resp[] data on err for MMC_IOC_MULTI_CMD').
Signed-off-by: Olof Johansson <olof@lixom.net>
Cc: Grant Grundler <grundler@google.com>
Signed-off-by: Ulf Hansson <ulf.hansson@linaro.org>
drivers/mmc/card/block.c