diff options
author | Boleyn Su <boleynsu@google.com> | 2020-08-06 09:31:44 +0300 |
---|---|---|
committer | David Sterba <dsterba@suse.com> | 2020-08-10 20:50:54 +0300 |
commit | c15c2ec07a26b251040943a1a9f90d3037f041e5 (patch) | |
tree | 237dad00fd4bc1bc0ae6d226cfec559da6dc7531 /crypto/scatterwalk.c | |
parent | faa008899a4db21a2df99833cb4ff6fa67009a20 (diff) | |
download | linux-c15c2ec07a26b251040943a1a9f90d3037f041e5.tar.xz |
btrfs: check correct variable after allocation in btrfs_backref_iter_alloc
The `if (!ret)` check will always be false and it may result in
ret->path being dereferenced while it is a NULL pointer.
Fixes: a37f232b7b65 ("btrfs: backref: introduce the skeleton of btrfs_backref_iter")
CC: stable@vger.kernel.org # 5.8+
Reviewed-by: Nikolay Borisov <nborisov@suse.com>
Reviewed-by: Qu Wenruo <wqu@suse.com>
Signed-off-by: Boleyn Su <boleynsu@google.com>
Reviewed-by: David Sterba <dsterba@suse.com>
Signed-off-by: David Sterba <dsterba@suse.com>
Diffstat (limited to 'crypto/scatterwalk.c')
0 files changed, 0 insertions, 0 deletions