Message ID | CAOQ4uxg=Mf0OCXHnJzXen3L8UJw2gzQ2CzYq=YGBstoGY936_w@mail.gmail.com (mailing list archive) |
---|---|
State | New, archived |
Headers | show |
Series | [v3] cap_inode_getsecurity: use d_find_any_alias() instead of d_find_alias() | expand |
diff --git a/security/commoncap.c b/security/commoncap.c index 1ce701fcb3f3..147f6131842a 100644 --- a/security/commoncap.c +++ b/security/commoncap.c @@ -388,7 +388,7 @@ int cap_inode_getsecurity(struct inode *inode, const char *name, void **buffer, if (strcmp(name, "capability") != 0) return -EOPNOTSUPP; - dentry = d_find_alias(inode); + dentry = d_find_any_alias(inode); if (!dentry) return -EINVAL;