diff options
| author | 2026-09-08 11:35:18 +0800 | |
|---|---|---|
| committer | 2026-09-11 07:48:11 -0700 | |
| commit | 2f271b812170d4cad578bae1f91db72f3c2e36e7 (patch) | |
| tree | d51222ef4c040486ecffaf6e1d5155ed7e9d2c28 /scripts/Makefile.thinlto | |
| parent | nvme-fc: do not warn on controller removal race (diff) | |
nvmet: preserve device path on allocation failure
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.
Fixes: a07b4970f464 ("nvmet: add a generic NVMe target")
Signed-off-by: Julian Sun <sunjunchao@bytedance.com>
Reviewed-by: Christoph Hellwig <hch@lst.de>
Signed-off-by: Keith Busch <kbusch@kernel.org>
Diffstat (limited to 'scripts/Makefile.thinlto')
0 files changed, 0 insertions, 0 deletions
