mirror of
https://github.com/hardkernel/linux.git
synced 2026-06-10 12:57:06 +09:00
Btrfs: fix a memory leak in btrfs_init_acl
commit f858153c36 upstream.
In btrfs_init_acl() cloned acl is not released
Signed-off-by: Yang Hongyang <yanghy@cn.fujitsu.com>
Signed-off-by: Chris Mason <chris.mason@oracle.com>
Acked-by: Jeff Mahoney <jeffm@suse.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
This commit is contained in:
committed by
Greg Kroah-Hartman
parent
ccfc4449f8
commit
aeda1ce857
@@ -272,6 +272,7 @@ int btrfs_init_acl(struct btrfs_trans_handle *trans,
|
||||
ACL_TYPE_ACCESS);
|
||||
}
|
||||
}
|
||||
posix_acl_release(clone);
|
||||
}
|
||||
failed:
|
||||
posix_acl_release(acl);
|
||||
|
||||
Reference in New Issue
Block a user