]> git.proxmox.com Git - mirror_ubuntu-kernels.git/commit
btrfs: Fix kfree of member instead of structure
authorJeff Mahoney <jeffm@suse.com>
Tue, 4 Oct 2011 03:23:23 +0000 (23:23 -0400)
committerDavid Sterba <dsterba@suse.cz>
Thu, 22 Mar 2012 00:45:30 +0000 (01:45 +0100)
commitcddcd800189bc03745d576f913dc57692c6f439a
tree361ed5f8c26a9820608de6d0a74f546729c90970
parent43c04fb1b8c9f45d971bb53d7cbbcda8ee85716b
btrfs: Fix kfree of member instead of structure

Correctness fix: The kfree calls in the add_delayed_* functions free
the node that's passed into it, but the node is a member of another
structure. It works because it's always the first member of the
containing structure, but it should really be using the containing
structure itself.

Signed-off-by: Jeff Mahoney <jeffm@suse.com>
fs/btrfs/delayed-ref.c