commit | 766f44d46a726cb59f52a75c5c87425a10c4bade | [log] [tgz] |
---|---|---|
author | Vahram Martirosyan <vmartirosyan@gmail.com> | Wed Nov 28 12:44:16 2012 -0500 |
committer | Theodore Ts'o <tytso@mit.edu> | Wed Nov 28 12:44:16 2012 -0500 |
tree | 33aa0c54b0ad7dd3aa6036f4a6351827275286f1 | |
parent | 06348679c9f69b3b031cf84c1f5f9f2488fc1f7d [diff] |
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: Vahram Martirosyan <vmartirosyan@linuxtesting.org> Signed-off-by: "Theodore Ts'o" <tytso@mit.edu>