]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commite83b5867722ab82b41082e1d826ade6b165dda67
tree366d8184698c17103ca68b4a51b47b0c63771186
parent277865f526ea99781d9e24ef42ccf4c9810f6db1
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