]> git.hungrycats.org Git - linux/commit
ublk: fix error code for unsupported command
authorMing Lei <ming.lei@redhat.com>
Tue, 19 Nov 2024 03:06:46 +0000 (11:06 +0800)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 5 Dec 2024 12:54:25 +0000 (13:54 +0100)
commitb286a9fc717e3ff92c3f7453355cb4490ac869df
tree0b76b73842a9f6cb6f6ab5bb8ef79ac317eca48b
parent76765823308db7834bf2639d8068f4683fdb8552
ublk: fix error code for unsupported command

commit 34c1227035b3ab930a1ae6ab6f22fec1af8ab09e upstream.

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>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/block/ublk_drv.c