From: Andrew Morton Date: Wed, 26 Oct 2005 08:59:03 +0000 (-0700) Subject: [PATCH] svcsock timestamp fix X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=4bcde03d41d2264edb4ea3c47cb27da1e2609e48;p=GitHub%2Fexynos8895%2Fandroid_kernel_samsung_universal8895.git [PATCH] svcsock timestamp fix Convert nanoseconds to microseconds correctly. Spotted by Steve Dickson Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds --- diff --git a/net/sunrpc/svcsock.c b/net/sunrpc/svcsock.c index 30ec3efc48a6..691dea4a58e7 100644 --- a/net/sunrpc/svcsock.c +++ b/net/sunrpc/svcsock.c @@ -587,7 +587,7 @@ svc_udp_recvfrom(struct svc_rqst *rqstp) struct timeval tv; tv.tv_sec = xtime.tv_sec; - tv.tv_usec = xtime.tv_nsec * 1000; + tv.tv_usec = xtime.tv_nsec / NSEC_PER_USEC; skb_set_timestamp(skb, &tv); /* Don't enable netstamp, sunrpc doesn't need that much accuracy */