Skip to content
Commit 766f44d4 authored by Vahram Martirosyan's avatar Vahram Martirosyan Committed by Theodore Ts'o
Browse files

ext4: fixed potential NULL dereference in ext4_calculate_overhead()



The memset operation before check can cause a BUG if the memory
allocation failed.  Since we are using get_zeroed_age, there is no
need to use memset anyway.

Found by the Spruce system in cooperation with the KEDR Framework.

Signed-off-by: default avatarVahram Martirosyan <vmartirosyan@linuxtesting.org>
Signed-off-by: default avatar"Theodore Ts'o" <tytso@mit.edu>
parent 06348679
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment