From ab5f29ae9ef0246cee27d246ee48923030575aae Mon Sep 17 00:00:00 2001 From: Toomas Soome Date: Wed, 28 Jan 2026 10:32:13 +0200 Subject: [PATCH] stand/zfs: fix path setup in zfs_mount() Need to check argument 'path', not just allocated struct member. --- stand/libsa/zfs/zfs.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/stand/libsa/zfs/zfs.c b/stand/libsa/zfs/zfs.c index 70a102f6425..ead772dc9c9 100644 --- a/stand/libsa/zfs/zfs.c +++ b/stand/libsa/zfs/zfs.c @@ -410,7 +410,7 @@ zfs_mount(const char *dev, const char *path, void **data) goto err; } - if (mnt->path != NULL) { + if (path != NULL) { mnt->path = strdup(path); if (mnt->path == NULL) { rv = ENOMEM;