public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
* Time conversion error in linux-2.6.11.10/net/sunrpoc/svcsock.c
@ 2005-08-01 21:11 Josip Loncaric
  2005-08-01 22:56 ` [PATCH] net/sunrpc: fix time conversion error Nishanth Aravamudan
  0 siblings, 1 reply; 4+ messages in thread
From: Josip Loncaric @ 2005-08-01 21:11 UTC (permalink / raw)
  To: linux-kernel

Line 589 of linux-2.6.11.10/net/sunrpc/svcsock.c is obviously wrong:

                 skb->stamp.tv_usec = xtime.tv_nsec * 1000;

To convert nsec to usec, one should divide instead of multiplying:

                 skb->stamp.tv_usec = xtime.tv_nsec / 1000;

The same bug could be present in the latest kernels, although I haven't 
checked.  This bug makes svc_udp_recvfrom() timestamps incorrect.

Sincerely,
Josip



^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2005-08-02  0:11 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2005-08-01 21:11 Time conversion error in linux-2.6.11.10/net/sunrpoc/svcsock.c Josip Loncaric
2005-08-01 22:56 ` [PATCH] net/sunrpc: fix time conversion error Nishanth Aravamudan
2005-08-02  0:03   ` Patrick McHardy
2005-08-02  0:11     ` Nishanth Aravamudan

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox