]> git.karo-electronics.de Git - karo-tx-linux.git/commit
mmc: core: check for zero length ioctl data
authorJohan Rudholm <johan.rudholm@stericsson.com>
Wed, 23 Nov 2011 08:05:58 +0000 (09:05 +0100)
committerChris Ball <cjb@laptop.org>
Thu, 1 Dec 2011 18:59:39 +0000 (13:59 -0500)
commitc78b6eadfa44ee4351eb88496b217edc0fb18025
treea5243593a7c2baf3bbad646054579bcfc703d747
parent32b12e6139cb12742581e94d59f540a70783b949
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>
drivers/mmc/card/block.c