summaryrefslogtreecommitdiff
path: root/lib/string.c
diff options
context:
space:
mode:
authorDavid Sterba <dsterba@suse.cz>2015-01-02 18:45:16 +0100
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2015-03-06 14:43:32 -0800
commitf9e2ba638c32dff17ee6404e2c8245fd49d99b8b (patch)
treecc172062ecfb5921b43b0c3c6cde2e961a677230 /lib/string.c
parent74e42361fa3bc102647ad1e1ec7c21b747658843 (diff)
downloadlwn-f9e2ba638c32dff17ee6404e2c8245fd49d99b8b.tar.gz
lwn-f9e2ba638c32dff17ee6404e2c8245fd49d99b8b.zip
btrfs: fix leak of path in btrfs_find_item
commit 381cf6587f8a8a8e981bc0c1aaaa8859b51dc756 upstream. 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. Fixes: 3f870c289900 ("btrfs: expand btrfs_find_item() to include find_orphan_item functionality") Signed-off-by: David Sterba <dsterba@suse.cz> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'lib/string.c')
0 files changed, 0 insertions, 0 deletions