aboutsummaryrefslogtreecommitdiff
path: root/lib/mpi/mpi-mul.c
diff options
context:
space:
mode:
authorJohannes Thumshirn <[email protected]>2019-12-05 14:19:57 +0100
committerDavid Sterba <[email protected]>2020-01-20 16:40:52 +0100
commit3dbd351df42109902fbcebf27104149226a4fcd9 (patch)
treec362637b9b051f056e38ff9cfee766509ef31a6e /lib/mpi/mpi-mul.c
parentf8935566372c579cf9076d344a76e7781365c6e3 (diff)
btrfs: fix possible NULL-pointer dereference in integrity checks
A user reports a possible NULL-pointer dereference in btrfsic_process_superblock(). We are assigning state->fs_info to a local fs_info variable and afterwards checking for the presence of state. While we would BUG_ON() a NULL state anyways, we can also just remove the local fs_info copy, as fs_info is only used once as the first argument for btrfs_num_copies(). There we can just pass in state->fs_info as well. Bugzilla: https://bugzilla.kernel.org/show_bug.cgi?id=205003 Signed-off-by: Johannes Thumshirn <[email protected]> Reviewed-by: David Sterba <[email protected]> Signed-off-by: David Sterba <[email protected]>
Diffstat (limited to 'lib/mpi/mpi-mul.c')
0 files changed, 0 insertions, 0 deletions