diff options
| author | Julian Sun <sunjunchao@bytedance.com> | 2026-09-08 11:35:18 +0800 |
|---|---|---|
| committer | Keith Busch <kbusch@kernel.org> | 2026-09-11 07:48:11 -0700 |
| commit | 2f271b812170d4cad578bae1f91db72f3c2e36e7 (patch) | |
| tree | d51222ef4c040486ecffaf6e1d5155ed7e9d2c28 /tools/lib/python/kdoc/python_version.py | |
| parent | 62b70e6c87121ae5b79ca20c3a5b005590336ec5 (diff) | |
| download | linux-next-2f271b812170d4cad578bae1f91db72f3c2e36e7.tar.gz linux-next-2f271b812170d4cad578bae1f91db72f3c2e36e7.zip | |
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 'tools/lib/python/kdoc/python_version.py')
0 files changed, 0 insertions, 0 deletions
