diff options
author | Yaniv Gardi <ygardi@codeaurora.org> | 2013-06-05 13:13:08 +0200 |
---|---|---|
committer | Chris Ball <cjb@laptop.org> | 2013-06-27 17:28:18 +0200 |
commit | a82e484e2480583b17be6253b985fa6f582ad20d (patch) | |
tree | 133eee2ef3cd1a755086c43bb8b2a2260f87835d /fs/direct-io.c | |
parent | mmc: atmel-mci: remove include <mach/cpu.h> (diff) | |
download | linux-a82e484e2480583b17be6253b985fa6f582ad20d.tar.xz linux-a82e484e2480583b17be6253b985fa6f582ad20d.zip |
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 <ygardi@codeaurora.org>
Signed-off-by: Chris Ball <cjb@laptop.org>
Diffstat (limited to 'fs/direct-io.c')
0 files changed, 0 insertions, 0 deletions