ext4: don't leave i_crtime.tv_sec uninitialized
authorTheodore Ts'o <tytso@mit.edu>
Mon, 17 Feb 2014 00:29:32 +0000 (19:29 -0500)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Fri, 7 Mar 2014 05:30:00 +0000 (21:30 -0800)
commit0c9f21983490feb5637990d719e729bf77b99bd1
tree6c9f92ae5ce713283853f5e28e0c1d6c2bec85f6
parentd6b55805ac4ffbcd63bf74ce572cc7a94f15be9e
ext4: don't leave i_crtime.tv_sec uninitialized

commit 19ea80603715d473600cd993b9987bc97d042e02 upstream.

If the i_crtime field is not present in the inode, don't leave the
field uninitialized.

Fixes: ef7f38359 ("ext4: Add nanosecond timestamps")
Reported-by: Vegard Nossum <vegard.nossum@oracle.com>
Tested-by: Vegard Nossum <vegard.nossum@oracle.com>
Signed-off-by: "Theodore Ts'o" <tytso@mit.edu>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
fs/ext4/ext4.h