diff options
author | Ming Lei <ming.lei@redhat.com> | 2023-04-20 12:11:04 +0300 |
---|---|---|
committer | Jens Axboe <axboe@kernel.dk> | 2023-04-20 16:03:02 +0300 |
commit | 7c75661c42a06fe35e1774373194f646b5a9e5c9 (patch) | |
tree | 92df6a1e0da2158c25d08412cce1223ab40db2b3 /tools/perf/scripts/python/syscall-counts-by-pid.py | |
parent | 9e05a2599a37295eb2dc5c03441daa6741abed4b (diff) | |
download | linux-7c75661c42a06fe35e1774373194f646b5a9e5c9.tar.xz |
ublk: don't return 0 in case of any failure
Commit 2d786e66c966 ("block: ublk: switch to ioctl command encoding")
starts to reset local variable of 'ret' as zero, then if any failure
happens when handling the three IO commands, 0 can be returned to ublk
server.
Fix it by returning -EINVAL in case of command handling failure.
Cc: Christoph Hellwig <hch@lst.de>
Fixes: 2d786e66c966 ("block: ublk: switch to ioctl command encoding")
Signed-off-by: Ming Lei <ming.lei@redhat.com>
Link: https://lore.kernel.org/r/20230420091104.1092972-1-ming.lei@redhat.com
Signed-off-by: Jens Axboe <axboe@kernel.dk>
Diffstat (limited to 'tools/perf/scripts/python/syscall-counts-by-pid.py')
0 files changed, 0 insertions, 0 deletions