commit | e661d2815194d6db3f3e38223277569ad55bb420 | [log] [tgz] |
---|---|---|
author | Darrick J. Wong <darrick.wong@oracle.com> | Thu Dec 12 13:07:33 2013 -0500 |
committer | Theodore Ts'o <tytso@mit.edu> | Thu Dec 12 13:07:34 2013 -0500 |
tree | 8a2cda37b58055615de64f7734f3340a8f5eec82 | |
parent | 80a1806d617fdb14421ac6ac50a640ac1fd303b3 [diff] |
e4defrag: don't crash if umounts the filesystem races with us If someone umounts the filesystem between statfs64() and the getmntent() iteration, we can exit the loop having never set mnt_type, and strcmp can crash. Fix the potential NULL dereference. Signed-off-by: Darrick J. Wong <darrick.wong@oracle.com> Signed-off-by: "Theodore Ts'o" <tytso@mit.edu>