From: David Sterba Date: Fri, 2 Jan 2015 17:45:16 +0000 (+0100) Subject: btrfs: fix leak of path in btrfs_find_item X-Git-Tag: fixes-v4.0-rc1~50^2~53^2~4 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=381cf6587f8a8a8e981bc0c1aaaa8859b51dc756;p=pandora-kernel.git btrfs: fix leak of path in btrfs_find_item If btrfs_find_item is called with NULL path it allocates one locally but does not free it. Affected paths are inserting an orphan item for a file and for a subvol root. Move the path allocation to the callers. CC: # 3.14+ Fixes: 3f870c289900 ("btrfs: expand btrfs_find_item() to include find_orphan_item functionality") Signed-off-by: David Sterba --- Reading git-diff-tree failed