diff options
author | Ondrej Mosnacek <omosnace@redhat.com> | 2019-02-22 15:57:13 +0100 |
---|---|---|
committer | Paul Moore <paul@paul-moore.com> | 2019-03-20 21:47:36 -0400 |
commit | d0c9c153b4bd6963c8fcccbc0caa12e8fa8d971d (patch) | |
tree | efb7a76003b4cd0708bc62de789a503072bb5e86 /security/selinux/hooks.c | |
parent | kernfs: clean up struct kernfs_iattrs (diff) | |
download | linux-dev-d0c9c153b4bd6963c8fcccbc0caa12e8fa8d971d.tar.xz linux-dev-d0c9c153b4bd6963c8fcccbc0caa12e8fa8d971d.zip |
kernfs: do not alloc iattrs in kernfs_xattr_get
This is a read-only operation, so we can simply return -ENODATA if
kn->iattr is NULL.
Signed-off-by: Ondrej Mosnacek <omosnace@redhat.com>
Acked-by: Casey Schaufler <casey@schaufler-ca.com>
[PM: minor merge fixes]
Signed-off-by: Paul Moore <paul@paul-moore.com>
Diffstat (limited to 'security/selinux/hooks.c')
0 files changed, 0 insertions, 0 deletions