diff options
author | Lu Fengqi <lufq.fnst@cn.fujitsu.com> | 2018-06-19 14:54:38 +0800 |
---|---|---|
committer | David Sterba <dsterba@suse.com> | 2018-06-21 19:21:13 +0200 |
commit | 22883ddc66df402f2fbc37fe1f4d2779238e4b2d (patch) | |
tree | d0f75b3ecc879da62260f4c7d6b3aa1372595156 /fs/pnode.h | |
parent | f098631848cd9f4142b6dec7ea95baad846e1670 (diff) | |
download | linux-22883ddc66df402f2fbc37fe1f4d2779238e4b2d.tar.bz2 |
btrfs: fix invalid-free in btrfs_extent_same
If this condition ((BTRFS_I(src)->flags & BTRFS_INODE_NODATASUM) !=
(BTRFS_I(dst)->flags & BTRFS_INODE_NODATASUM))
is hit, we will go to free the uninitialized cmp.src_pages and
cmp.dst_pages.
Fixes: 67b07bd4bec5 ("Btrfs: reuse cmp workspace in EXTENT_SAME ioctl")
Signed-off-by: Lu Fengqi <lufq.fnst@cn.fujitsu.com>
Reviewed-by: David Sterba <dsterba@suse.com>
Signed-off-by: David Sterba <dsterba@suse.com>
Diffstat (limited to 'fs/pnode.h')
0 files changed, 0 insertions, 0 deletions