aboutsummaryrefslogtreecommitdiffstats
path: root/module/os/linux/zfs/zpl_xattr.c
diff options
context:
space:
mode:
Diffstat (limited to 'module/os/linux/zfs/zpl_xattr.c')
-rw-r--r--module/os/linux/zfs/zpl_xattr.c12
1 files changed, 6 insertions, 6 deletions
diff --git a/module/os/linux/zfs/zpl_xattr.c b/module/os/linux/zfs/zpl_xattr.c
index 95523f28e..082287b00 100644
--- a/module/os/linux/zfs/zpl_xattr.c
+++ b/module/os/linux/zfs/zpl_xattr.c
@@ -707,7 +707,7 @@ __zpl_xattr_user_get(struct inode *ip, const char *name,
xattr_name = kmem_asprintf("%s%s", XATTR_USER_PREFIX, name);
error = zpl_xattr_get(ip, xattr_name, value, size);
- strfree(xattr_name);
+ kmem_strfree(xattr_name);
return (error);
}
@@ -729,7 +729,7 @@ __zpl_xattr_user_set(struct inode *ip, const char *name,
xattr_name = kmem_asprintf("%s%s", XATTR_USER_PREFIX, name);
error = zpl_xattr_set(ip, xattr_name, value, size, flags);
- strfree(xattr_name);
+ kmem_strfree(xattr_name);
return (error);
}
@@ -776,7 +776,7 @@ __zpl_xattr_trusted_get(struct inode *ip, const char *name,
#endif
xattr_name = kmem_asprintf("%s%s", XATTR_TRUSTED_PREFIX, name);
error = zpl_xattr_get(ip, xattr_name, value, size);
- strfree(xattr_name);
+ kmem_strfree(xattr_name);
return (error);
}
@@ -798,7 +798,7 @@ __zpl_xattr_trusted_set(struct inode *ip, const char *name,
#endif
xattr_name = kmem_asprintf("%s%s", XATTR_TRUSTED_PREFIX, name);
error = zpl_xattr_set(ip, xattr_name, value, size, flags);
- strfree(xattr_name);
+ kmem_strfree(xattr_name);
return (error);
}
@@ -845,7 +845,7 @@ __zpl_xattr_security_get(struct inode *ip, const char *name,
#endif
xattr_name = kmem_asprintf("%s%s", XATTR_SECURITY_PREFIX, name);
error = zpl_xattr_get(ip, xattr_name, value, size);
- strfree(xattr_name);
+ kmem_strfree(xattr_name);
return (error);
}
@@ -864,7 +864,7 @@ __zpl_xattr_security_set(struct inode *ip, const char *name,
#endif
xattr_name = kmem_asprintf("%s%s", XATTR_SECURITY_PREFIX, name);
error = zpl_xattr_set(ip, xattr_name, value, size, flags);
- strfree(xattr_name);
+ kmem_strfree(xattr_name);
return (error);
}