Skip to content

Commit 2f091d9

Browse files
martin-gpyigaw
authored andcommitted
fabrics: avoid potential segfault in nvmf_dim()
Eliminate the call to nvme_free_tree() in nvmf_dim() since the cleanup helper is already available here. Signed-off-by: Martin George <marting@netapp.com>
1 parent ea015e9 commit 2f091d9

File tree

1 file changed

+0
-1
lines changed

1 file changed

+0
-1
lines changed

fabrics.c

-1
Original file line numberDiff line numberDiff line change
@@ -1455,7 +1455,6 @@ int nvmf_dim(const char *desc, int argc, char **argv)
14551455
fprintf(stderr,
14561456
"Did not find device %s: %s\n",
14571457
p, nvme_strerror(errno));
1458-
nvme_free_tree(r);
14591458
return -errno;
14601459
}
14611460
dim_operation(c, tas, p);

0 commit comments

Comments
 (0)