diff options
author | Grant Grundler <grundler@chromium.org> | 2015-09-23 18:30:33 -0700 |
---|---|---|
committer | Ulf Hansson <ulf.hansson@linaro.org> | 2015-10-26 16:00:03 +0100 |
commit | b093410c9aef29efbf2f4af7b00b2dcc1c119fe8 (patch) | |
tree | 9840078d16c06c17cccfb6a25e9ff86e5f27fda6 /drivers/mmc/core/sd.c | |
parent | 85f45058eeef94fdc9f533cca8e17679e44f1177 (diff) | |
download | op-kernel-dev-b093410c9aef29efbf2f4af7b00b2dcc1c119fe8.zip op-kernel-dev-b093410c9aef29efbf2f4af7b00b2dcc1c119fe8.tar.gz |
mmc: block: copy resp[] data on err for MMC_IOC_MULTI_CMD
MMC_IOC_CMD and MMC_IOC_MULTI_CMD ioctl() code currently bails on
any eMMC errors. However, in case there is any resp[] data, we
should attempt to copy resp[] back to user space. The user app
can then determine which command(s) failed in the MMC_IOC_MULTI_CMD
case AND/OR report better diagnostics in both cases.
Gwendal Grignou provided the idea and it was previously implemented
and tested on v3.18 ChromeOS kernel:
https://chromium-review.googlesource.com/#/c/299956
Signed-off-by: Grant Grundler <grundler@chromium.org>
Reviewed-by: Hyung Taek Ryoo <hryoo@nvidia.com>
Reviewed-by: Gwendal Grignou <gwendal@chromium.org>
Tested-by: David Riley <davidriley@chromium.org>
Signed-off-by: Ulf Hansson <ulf.hansson@linaro.org>
Diffstat (limited to 'drivers/mmc/core/sd.c')
0 files changed, 0 insertions, 0 deletions