aboutsummaryrefslogtreecommitdiffstats
path: root/fs/btrfs/dev-replace.c
diff options
context:
space:
mode:
authorDan Robertson <[email protected]>2019-02-19 02:56:43 +0000
committerDavid Sterba <[email protected]>2019-02-25 13:13:41 +0000
commite49be14b8d80e23bb7c53d78c21717a474ade76b (patch)
treed60537348beab3f63cd5ed5ea93c8ea3ed753f6a /fs/btrfs/dev-replace.c
parentBtrfs: remove no longer needed range length checks for deduplication (diff)
downloadkernel-e49be14b8d80e23bb7c53d78c21717a474ade76b.tar.gz
kernel-e49be14b8d80e23bb7c53d78c21717a474ade76b.zip
btrfs: init csum_list before possible free
The scrub_ctx csum_list member must be initialized before scrub_free_ctx is called. If the csum_list is not initialized beforehand, the list_empty call in scrub_free_csums will result in a null deref if the allocation fails in the for loop. Fixes: a2de733c78fa ("btrfs: scrub") CC: [email protected] # 3.0+ Reviewed-by: Nikolay Borisov <[email protected]> Signed-off-by: Dan Robertson <[email protected]> Reviewed-by: David Sterba <[email protected]> Signed-off-by: David Sterba <[email protected]>
Diffstat (limited to 'fs/btrfs/dev-replace.c')
0 files changed, 0 insertions, 0 deletions