Fixes: 6261abf48a88 ("ubd_drv: abort io command if queue is aborted") Signed-off-by: Ming Lei <ming.lei@xxxxxxxxxx> --- drivers/block/ubd_drv.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/block/ubd_drv.c b/drivers/block/ubd_drv.c index b7a59dc2229d..3b3723d78084 100644 --- a/drivers/block/ubd_drv.c +++ b/drivers/block/ubd_drv.c @@ -769,7 +769,7 @@ static int ubd_ch_uring_cmd(struct io_uring_cmd *cmd, unsigned int issue_flags) goto out; } if (cmd_op == UBD_IO_COMMIT_REQ) { - ret = ubq->aborted; + ret = UBD_IO_RES_ABORT; goto out; } break; -- 2.31.1