diff options
| author | Sreeraj S Kurup <sreekuttan2156239@gmail.com> | 2026-11-09 14:24:28 +0000 |
|---|---|---|
| committer | Keith Busch <kbusch@kernel.org> | 2026-11-16 07:15:01 -0800 |
| commit | 21f0f264962358f3af6e08805b21d32abdd0e35f (patch) | |
| tree | 923a2cb8c084ce6acf10088b9eeea2870b393d8b /tools/perf/scripts/python | |
| parent | 920cd269c9228c5f51a8bbd65575010890797afa (diff) | |
nvmet: reject invalid write-protect feature values
The Set Features handler for namespace write protection currently
accepts unsupported values. The default case in the write-protect
switch leaves the status unchanged, causing the command to return
success even though no valid setting was applied.
Return NVME_SC_INVALID_FIELD | NVME_STATUS_DNR for unsupported
values. This also prevents issuing a namespace-change notification
for an invalid request.
Fixes: 3a1f7c79ae6d ("nvmet: make nvmet_find_namespace() req based")
Signed-off-by: Sreeraj S Kurup <sreekuttan2156239@gmail.com>
Reviewed-by: Hannes Reinecke <hare@kernel.org>
Reviewed-by: Christoph Hellwig <hch@lst.de>
Signed-off-by: Keith Busch <kbusch@kernel.org>
Diffstat (limited to 'tools/perf/scripts/python')
0 files changed, 0 insertions, 0 deletions
