diff options
author | Johan Rudholm <johan.rudholm@stericsson.com> | 2011-11-23 09:05:58 +0100 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2012-02-29 16:30:54 -0800 |
commit | f3d763847f78da07fb82f6d9e8242875cf6995d3 (patch) | |
tree | 5e8ad1600e763b66dfdc1606844f40a86277ec54 /fs | |
parent | 2a8e5e8a2df18812c60720fa0534c29c9f1c17b6 (diff) |
mmc: core: check for zero length ioctl data
commit 4d6144de8ba263eb3691a737c547e5b2fdc45287 upstream.
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>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'fs')
0 files changed, 0 insertions, 0 deletions