git: ab5f29ae9ef0 - main - stand/zfs: fix path setup in zfs_mount()
- Go to: [ bottom of page ] [ top of archives ] [ this month ]
Date: Wed, 28 Jan 2026 08:37:39 UTC
The branch main has been updated by tsoome:
URL: https://cgit.FreeBSD.org/src/commit/?id=ab5f29ae9ef0246cee27d246ee48923030575aae
commit ab5f29ae9ef0246cee27d246ee48923030575aae
Author: Toomas Soome <tsoome@FreeBSD.org>
AuthorDate: 2026-01-28 08:32:13 +0000
Commit: Toomas Soome <tsoome@FreeBSD.org>
CommitDate: 2026-01-28 08:32:13 +0000
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 70a102f6425d..ead772dc9c90 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;