Explicitly initialize ->fl_break_time to 0 in locks_init_lock() and __locks_copy_lock(). ->fl_break_time will be later used during checkpoint/restart of an applicaton that has a file-lease. Signed-off-by: Sukadev Bhattiprolu <sukadev@xxxxxxxxxxxxxxxxxx> --- fs/locks.c | 2 ++ 1 files changed, 2 insertions(+), 0 deletions(-) diff --git a/fs/locks.c b/fs/locks.c index c62ab7f..0bd5af7 100644 --- a/fs/locks.c +++ b/fs/locks.c @@ -185,6 +185,7 @@ void locks_init_lock(struct file_lock *fl) fl->fl_flags = 0; fl->fl_type = 0; fl->fl_start = fl->fl_end = 0; + fl->fl_break_time = 0UL; fl->fl_ops = NULL; fl->fl_lmops = NULL; } @@ -228,6 +229,7 @@ void __locks_copy_lock(struct file_lock *new, const struct file_lock *fl) new->fl_type = fl->fl_type; new->fl_start = fl->fl_start; new->fl_end = fl->fl_end; + new->fl_break_time = 0UL; new->fl_ops = NULL; new->fl_lmops = NULL; } -- 1.6.0.4 -- To unsubscribe from this list: send the line "unsubscribe linux-fsdevel" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html