From: Yaniv Gardi Date: Wed, 5 Jun 2013 11:13:08 +0000 (+0300) Subject: mmc: card: fixing an false identification of SANITIZE command X-Git-Tag: v3.11-rc1~50^2~39 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=a82e484e2480583b17be6253b985fa6f582ad20d;p=pandora-kernel.git mmc: card: fixing an false identification of SANITIZE command Inside the routine mmc_blk_ioctl_cmd() the sanitize command is identified according to the value of bits 16-23 of the argument. but what happens if a different command is sent, and only by chance, bits 16-23 contain the value of SANITIZE command ? In that case a SANITIZE command will be falsely identified. In order to prevent such a case, the condition is expanded and now it also checks the opcode itself, and verifies that it is an MMC_SWITCH opcode. Signed-off-by: Yaniv Gardi Signed-off-by: Chris Ball --- Reading git-diff-tree failed