time: ntp: fix bug in ntp_update_offset() & do_adjtimex(), fix
authorJohn Stultz <johnstul@us.ibm.com>
Thu, 26 Feb 2009 17:46:14 +0000 (09:46 -0800)
committerIngo Molnar <mingo@elte.hu>
Thu, 26 Feb 2009 18:39:47 +0000 (19:39 +0100)
commita2a5ac8650b570bea3cb3614f77739dcd07d6632
tree366d8184698c17103ca68b4a51b47b0c63771186
parent39854fe8c165872d743f6a0c4860ca2de8e45ac9
time: ntp: fix bug in ntp_update_offset() & do_adjtimex(), fix

The time_status conditional was accidentally placed right after we clear
the checked time_status bits, which causes us to take the conditional
every time through. This fixes it by moving the conditional to before we
clear the time_status bits.

Signed-off-by: John Stultz <johnstul@us.ibm.com>
Cc: Clark Williams <williams@redhat.com>
Signed-off-by: Ingo Molnar <mingo@elte.hu>
kernel/time/ntp.c