diff options
author | 2023-05-05 23:31:42 +0800 | |
---|---|---|
committer | 2023-05-12 09:09:06 -0600 | |
commit | e485bd9e2c419142430ae6fe3e8f64e3059aef50 (patch) | |
tree | c5485b97153320e7ee110930a96fa9a4af5e3f41 /scripts/generate_rust_analyzer.py | |
parent | block/rnbd: replace REQ_OP_FLUSH with REQ_OP_WRITE (diff) | |
download | wireguard-linux-e485bd9e2c419142430ae6fe3e8f64e3059aef50.tar.xz wireguard-linux-e485bd9e2c419142430ae6fe3e8f64e3059aef50.zip |
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 <ming.lei@redhat.com>
Link: https://lore.kernel.org/r/20230505153142.1258336-1-ming.lei@redhat.com
Signed-off-by: Jens Axboe <axboe@kernel.dk>
Diffstat (limited to 'scripts/generate_rust_analyzer.py')
0 files changed, 0 insertions, 0 deletions