mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-29 03:01:39 -04:00
[SUNRPC]: Fix nsec --> usec conversion.
We need to divide, not multiply. While we're here, use NSEC_PER_USEC instead of a magic constant. Based upon a report from Josip Loncaric and a patch by Andrew Morton. Signed-off-by: David S. Miller <[email protected]>
This commit is contained in:
parent
00dd1e4339
commit
3501466941
1 changed files with 1 additions and 1 deletions
|
|
@ -586,7 +586,7 @@ svc_udp_recvfrom(struct svc_rqst *rqstp)
|
|||
}
|
||||
if (skb->stamp.tv_sec == 0) {
|
||||
skb->stamp.tv_sec = xtime.tv_sec;
|
||||
skb->stamp.tv_usec = xtime.tv_nsec * 1000;
|
||||
skb->stamp.tv_usec = xtime.tv_nsec / NSEC_PER_USEC;
|
||||
/* Don't enable netstamp, sunrpc doesn't
|
||||
need that much accuracy */
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue