projects
/
linux-block.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
e924da7
)
ublk: fix error code for unsupported command
author
Ming Lei
<ming.lei@redhat.com>
Tue, 19 Nov 2024 03:06:46 +0000
(11:06 +0800)
committer
Jens Axboe
<axboe@kernel.dk>
Tue, 19 Nov 2024 16:19:46 +0000
(09:19 -0700)
ENOTSUPP is for kernel use only, and shouldn't be sent to userspace.
Fix it by replacing it with EOPNOTSUPP.
Cc: stable@vger.kernel.org
Fixes:
bfbcef036396
("ublk_drv: move ublk_get_device_from_id into ublk_ctrl_uring_cmd")
Signed-off-by: Ming Lei <ming.lei@redhat.com>
Link:
https://lore.kernel.org/r/20241119030646.2319030-1-ming.lei@redhat.com
Signed-off-by: Jens Axboe <axboe@kernel.dk>
drivers/block/ublk_drv.c
patch
|
blob
|
blame
|
history
diff --git
a/drivers/block/ublk_drv.c
b/drivers/block/ublk_drv.c
index c6d18cd8af44edbe2677690b8632a49c9d35e8e9..d4aed12dd436be4cdc1d70894ba657503dcf0d94 100644
(file)
--- a/
drivers/block/ublk_drv.c
+++ b/
drivers/block/ublk_drv.c
@@
-3041,7
+3041,7
@@
static int ublk_ctrl_uring_cmd(struct io_uring_cmd *cmd,
ret = ublk_ctrl_end_recovery(ub, cmd);
break;
default:
- ret = -ENOTSUPP;
+ ret = -E
OP
NOTSUPP;
break;
}