diff options
author | David Sterba <dsterba@suse.cz> | 2015-01-02 18:45:16 +0100 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2015-03-06 14:43:32 -0800 |
commit | f9e2ba638c32dff17ee6404e2c8245fd49d99b8b (patch) | |
tree | cc172062ecfb5921b43b0c3c6cde2e961a677230 /kernel/rcu | |
parent | 74e42361fa3bc102647ad1e1ec7c21b747658843 (diff) | |
download | lwn-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 'kernel/rcu')
0 files changed, 0 insertions, 0 deletions