Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux
1
fork

Configure Feed

Select the types of activity you want to include in your feed.

ublk: fix error code for unsupported command

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>

authored by

Ming Lei and committed by
Jens Axboe
34c12270 e924da7d

+1 -1
+1 -1
drivers/block/ublk_drv.c
··· 3041 3041 ret = ublk_ctrl_end_recovery(ub, cmd); 3042 3042 break; 3043 3043 default: 3044 - ret = -ENOTSUPP; 3044 + ret = -EOPNOTSUPP; 3045 3045 break; 3046 3046 } 3047 3047