[PATCH 1/2] nvmet: preserve device path on allocation failure.

Keith Busch kbusch at kernel.org
Fri Sep 11 07:45:58 PDT 2026


On Tue, Sep 08, 2026 at 11:35:18AM +0800, Julian Sun wrote:
> nvmet_ns_device_path_store() frees the old path before allocating its
> replacement, losing the existing configuration if allocation fails.
> Allocate the new path before freeing the old one.

Thanks, applied to nvme-7.3.



More information about the Linux-nvme mailing list