diff options
| author | David Sterba <dsterba@suse.cz> | 2015-01-02 18:45:16 +0100 |
|---|---|---|
| committer | Luis Henriques <luis.henriques@canonical.com> | 2015-02-24 10:01:03 +0000 |
| commit | 826dcee76905ead374272b731b83fd216f875afc (patch) | |
| tree | e3e60e5a36e7aea4614c422777eca9ed3788b639 /kernel | |
| parent | aa9f08460f131b28b7a5f28a3102dc46b75a4254 (diff) | |
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: Luis Henriques <luis.henriques@canonical.com>
Diffstat (limited to 'kernel')
0 files changed, 0 insertions, 0 deletions
