Skip to content
Commit d0c9c153 authored by Ondrej Mosnacek's avatar Ondrej Mosnacek Committed by Paul Moore
Browse files

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: default avatarOndrej Mosnacek <omosnace@redhat.com>
Acked-by: default avatarCasey Schaufler <casey@schaufler-ca.com>
[PM: minor merge fixes]
Signed-off-by: default avatarPaul Moore <paul@paul-moore.com>
parent 05895219
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment