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.2.9~59 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=f3d763847f78da07fb82f6d9e8242875cf6995d3;p=pandora-kernel.git 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 Signed-off-by: Chris Ball Signed-off-by: Greg Kroah-Hartman --- Reading git-diff-tree failed