diff options
author | Keith Busch <kbusch@kernel.org> | 2019-10-10 00:38:13 +0900 |
---|---|---|
committer | Jens Axboe <axboe@kernel.dk> | 2019-10-09 21:00:20 -0600 |
commit | 79a85e214d62da9a750cc63ef49483e62abbda81 (patch) | |
tree | 2949c2de17ef47047ab7d6447c29c8b433fe3053 /arch/powerpc/kvm/book3s_xive_native.c | |
parent | 8a99734081775c012a4a6c442fdef0379fe52bdf (diff) | |
download | linux-stable-79a85e214d62da9a750cc63ef49483e62abbda81.tar.gz linux-stable-79a85e214d62da9a750cc63ef49483e62abbda81.tar.bz2 linux-stable-79a85e214d62da9a750cc63ef49483e62abbda81.zip |
null_blk: Fix zoned command return code
The return code from null_handle_zoned() sets the cmd->error value.
Returning OK status when an error occured overwrites the intended
cmd->error. Return the appropriate error code instead of setting the
error in the cmd.
Fixes: fceb5d1b19cbe626 ("null_blk: create a helper for zoned devices")
Cc: Chaitanya Kulkarni <chaitanya.kulkarni@wdc.com>
Signed-off-by: Keith Busch <kbusch@kernel.org>
Signed-off-by: Jens Axboe <axboe@kernel.dk>
Diffstat (limited to 'arch/powerpc/kvm/book3s_xive_native.c')
0 files changed, 0 insertions, 0 deletions