Ming Lei e485bd9e2c 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>
2023-05-12 09:09:06 -06:00
..
2023-05-06 08:28:58 -07:00
2023-05-06 08:28:58 -07:00
2023-05-06 08:28:58 -07:00
2022-06-28 06:33:15 -06:00
2022-06-28 06:33:15 -06:00
2023-01-04 14:44:13 -07:00
2022-06-28 06:33:15 -06:00
2023-04-27 11:53:57 -07:00
2022-06-28 06:33:15 -06:00
2023-01-29 15:18:35 -07:00
2022-06-28 06:33:15 -06:00
2022-06-28 06:33:15 -06:00
2023-05-12 09:09:06 -06:00
2023-01-12 17:02:20 -06:00
2022-06-28 06:33:15 -06:00