aboutsummaryrefslogtreecommitdiff
path: root/include/linux/fpga/fpga-mgr.h
diff options
context:
space:
mode:
authorYaniv Gardi <[email protected]>2013-06-05 14:13:08 +0300
committerChris Ball <[email protected]>2013-06-27 11:28:18 -0400
commita82e484e2480583b17be6253b985fa6f582ad20d (patch)
tree133eee2ef3cd1a755086c43bb8b2a2260f87835d /include/linux/fpga/fpga-mgr.h
parent4d156d50b513116ba701b8d69d7fb870dd370481 (diff)
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 <[email protected]> Signed-off-by: Chris Ball <[email protected]>
Diffstat (limited to 'include/linux/fpga/fpga-mgr.h')
0 files changed, 0 insertions, 0 deletions