Message ID | 20180622214359.17903-5-seth.forshee@canonical.com |
---|---|
State | New |
Headers | show |
Series | Backport namespaced fscap support to xenial | expand |
diff --git a/security/commoncap.c b/security/commoncap.c index d42373adb762..814324f7f057 100644 --- a/security/commoncap.c +++ b/security/commoncap.c @@ -460,6 +460,8 @@ int cap_inode_getsecurity(const struct inode *inode, const char *name, magic |= VFS_CAP_FLAGS_EFFECTIVE; memcpy(&cap->data, &nscap->data, sizeof(__le32) * 2 * VFS_CAP_U32); cap->magic_etc = cpu_to_le32(magic); + } else { + size = -ENOMEM; } } kfree(tmpbuf);