Skip to content
Commit 03c90afb authored by Jens Axboe's avatar Jens Axboe
Browse files

block/blk-iocost: ensure 'ret' is set on error



In case blkg_conf_open_bdev_frozen() fails, ioc_qos_write() jumps to the
error path without assigning a value to 'ret'. Ensure that it inherits
the error from the passed back error value.

Reported-by: default avatarkernel test robot <lkp@intel.com>
Closes: https://lore.kernel.org/oe-kbuild-all/202503200454.QWpwKeJu-lkp@intel.com/


Fixes: 9730763f ("block: correct locking order for protecting blk-wbt parameters")
Signed-off-by: default avatarJens Axboe <axboe@kernel.dk>
parent 9730763f
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment