summaryrefslogtreecommitdiff
path: root/tools/perf/scripts/python
diff options
context:
space:
mode:
authorJulian Sun <sunjunchao@bytedance.com>2026-09-08 11:35:18 +0800
committerKeith Busch <kbusch@kernel.org>2026-09-11 07:48:11 -0700
commit2f271b812170d4cad578bae1f91db72f3c2e36e7 (patch)
treed51222ef4c040486ecffaf6e1d5155ed7e9d2c28 /tools/perf/scripts/python
parent62b70e6c87121ae5b79ca20c3a5b005590336ec5 (diff)
downloadlinux-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/perf/scripts/python')
0 files changed, 0 insertions, 0 deletions