aboutsummaryrefslogtreecommitdiffstats
path: root/tools/perf/scripts/python/event_analyzing_sample.py
diff options
context:
space:
mode:
authorMing Lei <[email protected]>2023-04-20 09:11:04 +0000
committerJens Axboe <[email protected]>2023-04-20 13:03:02 +0000
commit7c75661c42a06fe35e1774373194f646b5a9e5c9 (patch)
tree92df6a1e0da2158c25d08412cce1223ab40db2b3 /tools/perf/scripts/python/event_analyzing_sample.py
parentsed-opal: geometry feature reporting command (diff)
downloadkernel-7c75661c42a06fe35e1774373194f646b5a9e5c9.tar.gz
kernel-7c75661c42a06fe35e1774373194f646b5a9e5c9.zip
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 <[email protected]> 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 'tools/perf/scripts/python/event_analyzing_sample.py')
0 files changed, 0 insertions, 0 deletions