From a80cda8eb1a65e7d1de273991f18ab35d5973206 Mon Sep 17 00:00:00 2001 From: Daniel Wagner Date: Fri, 28 Nov 2025 09:02:30 +0100 Subject: [PATCH] nvme: use io passthru for write_uncor The Write Uncorrectable command is part of the IO commands, thus use the nvme_submit_io_passthru interface instead of the admin one. Fixes: 927398903d9c ("nvme: rework nvme_io command") Signed-off-by: Daniel Wagner --- nvme.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/nvme.c b/nvme.c index 64c343f95e..e0dd9abb59 100644 --- a/nvme.c +++ b/nvme.c @@ -7067,7 +7067,7 @@ static int write_uncor(int argc, char **argv, struct command *acmd, struct plugi nvme_init_write_uncorrectable(&cmd, cfg.namespace_id, cfg.start_block, cfg.block_count, cfg.dtype << 4, cfg.dspec); - err = nvme_submit_admin_passthru(hdl, &cmd, NULL); + err = nvme_submit_io_passthru(hdl, &cmd, NULL); if (err < 0) nvme_show_error("write uncorrectable: %s", nvme_strerror(err)); else if (err != 0)