From: Johan Rudholm Date: Wed, 23 Nov 2011 08:05:58 +0000 (+0100) Subject: mmc: core: check for zero length ioctl data X-Git-Tag: v3.3-rc1~72^2~47 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=4d6144de8ba263eb3691a737c547e5b2fdc45287;p=pandora-kernel.git 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 Signed-off-by: Chris Ball --- Reading git-diff-tree failed