Message ID | 20241206082202.949142-4-ming.lei@redhat.com (mailing list archive) |
---|---|
State | New |
Headers | show |
Series | [1/3] ubd_drv: fix return value for COMMIT* command | expand |
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;
Fixes: 6261abf48a88 ("ubd_drv: abort io command if queue is aborted") Signed-off-by: Ming Lei <ming.lei@redhat.com> --- drivers/block/ubd_drv.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)