diff --git a/fs/ubifs/xattr.c b/fs/ubifs/xattr.c
index a402c7d..c8be7cd 100644
--- a/fs/ubifs/xattr.c
+++ b/fs/ubifs/xattr.c
@@ -625,7 +625,7 @@ int ubifs_security_getxattr(struct dentry *d,
const char *name,
 {
        if (strcmp(name, "") == 0)
                return -EINVAL;
-       return __ubifs_getxattr(d->d_inode, XATTR_NAME_SELINUX, buffer, size);
+       return __ubifs_getxattr(d->d_inode, name, buffer, size);
 }

