[PATCH v2 4/9] nvme-fabrics: remove dead hostnqn already-assigned check

Christoph Hellwig hch at lst.de
Fri Nov 6 02:36:51 PST 2026


On Fri, Nov 06, 2026 at 10:27:31AM +0800, Guixin Liu wrote:
> The opts->host check in the NVMF_OPT_HOSTNQN handler can never fire:
> options are parsed into a freshly allocated struct, and opts->host is
> only assigned after the parsing loop completes. A duplicate hostnqn
> option is already silently overridden by the strscpy() into the local
> buffer. Remove the dead check.

Looks good:

Reviewed-by: Christoph Hellwig <hch at lst.de>




More information about the Linux-nvme mailing list