diff options
author | Ming Lei <[email protected]> | 2023-05-05 23:31:42 +0800 |
---|---|---|
committer | Jens Axboe <[email protected]> | 2023-05-12 09:09:06 -0600 |
commit | e485bd9e2c419142430ae6fe3e8f64e3059aef50 (patch) | |
tree | c5485b97153320e7ee110930a96fa9a4af5e3f41 /lib/mpi/mpi-mod.c | |
parent | 5e6e08087a4acb4ee3574cea32dbff0f63c7f608 (diff) |
ublk: fix command op code check
In case of CONFIG_BLKDEV_UBLK_LEGACY_OPCODES, type of cmd opcode could
be 0 or 'u'; and type can only be 'u' if CONFIG_BLKDEV_UBLK_LEGACY_OPCODES
isn't set.
So fix the wrong check.
Fixes: 2d786e66c966 ("block: ublk: switch to ioctl command encoding")
Signed-off-by: Ming Lei <[email protected]>
Link: https://lore.kernel.org/r/[email protected]
Signed-off-by: Jens Axboe <[email protected]>
Diffstat (limited to 'lib/mpi/mpi-mod.c')
0 files changed, 0 insertions, 0 deletions