diff mbox series

[1/3] ubd_drv: fix return value for COMMIT* command

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

Commit Message

Ming Lei Dec. 6, 2024, 8:21 a.m. UTC
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(-)
diff mbox series

Patch

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;