X-Git-Url: https://git.karo-electronics.de/?a=blobdiff_plain;f=fs%2Fbtrfs%2Facl.c;h=15b5ca2a260624fd7549b91175ff3d8ce28c2014;hb=eee2a817df7c5a6e569f353f8be78cc1b3604bb6;hp=6ae2c8cac9d568ee754f6913c29302555ee44593;hpb=acc6f11272ce4f77c40b1a6292eb198fd6aaf8c3;p=karo-tx-linux.git diff --git a/fs/btrfs/acl.c b/fs/btrfs/acl.c index 6ae2c8cac9d5..15b5ca2a2606 100644 --- a/fs/btrfs/acl.c +++ b/fs/btrfs/acl.c @@ -60,8 +60,10 @@ static struct posix_acl *btrfs_get_acl(struct inode *inode, int type) size = __btrfs_getxattr(inode, name, value, size); if (size > 0) { acl = posix_acl_from_xattr(value, size); - if (IS_ERR(acl)) + if (IS_ERR(acl)) { + kfree(value); return acl; + } set_cached_acl(inode, type, acl); } kfree(value);