summaryrefslogtreecommitdiffstats
path: root/drivers/mmc/host/sh_mmcif.c
diff options
context:
space:
mode:
authorJohan Rudholm <johan.rudholm@stericsson.com>2011-11-23 09:05:58 +0100
committerChris Ball <cjb@laptop.org>2012-01-11 23:58:42 -0500
commit4d6144de8ba263eb3691a737c547e5b2fdc45287 (patch)
tree18ff9af5efcf42fdafae2e76a0df75cf498923e8 /drivers/mmc/host/sh_mmcif.c
parent4ee5ebaf74ba1b3e2e3f9aad442bf38db96c20d2 (diff)
downloadop-kernel-dev-4d6144de8ba263eb3691a737c547e5b2fdc45287.zip
op-kernel-dev-4d6144de8ba263eb3691a737c547e5b2fdc45287.tar.gz
mmc: core: check for zero length ioctl data
If the read or write buffer size associated with the command sent through the mmc_blk_ioctl is zero, do not prepare data buffer. This enables a ioctl(2) call to for instance send a MMC_SWITCH to set a byte in the ext_csd. Signed-off-by: Johan Rudholm <johan.rudholm@stericsson.com> Signed-off-by: Chris Ball <cjb@laptop.org>
Diffstat (limited to 'drivers/mmc/host/sh_mmcif.c')
0 files changed, 0 insertions, 0 deletions
OpenPOWER on IntegriCloud