diff options
| author | Ming Lei <ming.lei@redhat.com> | 2024-11-19 11:06:46 +0800 |
|---|---|---|
| committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2024-12-14 19:54:06 +0100 |
| commit | 2de63befbea88b41124f2f8f2c41961d353023bd (patch) | |
| tree | 626483eca19c74a9ddbbf8ffa41f7800cbd88b1f /lib/string_helpers.c | |
| parent | c9e72352a10ae89a430449f7bfeb043e75c255d9 (diff) | |
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>
Diffstat (limited to 'lib/string_helpers.c')
0 files changed, 0 insertions, 0 deletions
