diff options
| author | Guixin Liu <kanie@linux.alibaba.com> | 2026-07-29 18:56:07 +0800 |
|---|---|---|
| committer | Keith Busch <kbusch@kernel.org> | 2026-07-29 08:08:00 -0700 |
| commit | 581d8bb556dd3e5567bcf322aa5e3e4b6a200c08 (patch) | |
| tree | 5951183dbc6c981958adfe999682a83f2d4c3998 /tools/perf/scripts/python/export-to-sqlite.py | |
| parent | b53d495c7f0db46b6748b5ade48371a10dd5d3bc (diff) | |
nvmet: fix return status of RMI log page on allocation failure
nvmet_execute_get_log_page_rmi() leaves 'status' holding NVME_SC_SUCCESS
(set by the successful nvmet_req_find_ns() call) when the kzalloc() for
the log buffer fails. It then jumps to the out label and completes the
request with a success status, so the host is told the command succeeded
while no data was transferred.
Initialize 'status' to NVME_SC_INTERNAL, matching the smart log handler,
so an allocation failure is reported as an internal error.
Fixes: 5fd075cdaf36 ("nvmet: implement rotational media information log")
Reviewed-by: Christoph Hellwig <hch@lst.de>
Signed-off-by: Guixin Liu <kanie@linux.alibaba.com>
Signed-off-by: Keith Busch <kbusch@kernel.org>
Diffstat (limited to 'tools/perf/scripts/python/export-to-sqlite.py')
0 files changed, 0 insertions, 0 deletions
