diff options
| author | Ming Lei <[email protected]> | 2023-05-05 15:31:42 +0000 |
|---|---|---|
| committer | Jens Axboe <[email protected]> | 2023-05-12 15:09:06 +0000 |
| commit | e485bd9e2c419142430ae6fe3e8f64e3059aef50 (patch) | |
| tree | c5485b97153320e7ee110930a96fa9a4af5e3f41 /lib/string_helpers.c | |
| parent | block/rnbd: replace REQ_OP_FLUSH with REQ_OP_WRITE (diff) | |
| download | kernel-e485bd9e2c419142430ae6fe3e8f64e3059aef50.tar.gz kernel-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 <[email protected]>
Link: https://lore.kernel.org/r/[email protected]
Signed-off-by: Jens Axboe <[email protected]>
Diffstat (limited to 'lib/string_helpers.c')
0 files changed, 0 insertions, 0 deletions
