aboutsummaryrefslogtreecommitdiff
path: root/drivers/net/wireless/rtlwifi/debug.c
diff options
context:
space:
mode:
authorRichard Cochran <[email protected]>2013-04-23 01:56:34 +0000
committerJeff Kirsher <[email protected]>2013-04-25 18:30:02 -0700
commit73e3dd6b45c4c870fc2641eb04c24e3f12dab1e0 (patch)
treec910921b9519b792c7a1f43963bb7804e7c714c4 /drivers/net/wireless/rtlwifi/debug.c
parent3a4e0d6a95b2b6f7b22eb7c7361a0fc4289478eb (diff)
e1000e: fix numeric overflow in phc settime method
The PTP Hardware Clock settime function in the e1000e driver computes nanoseconds from a struct timespec. The code converts the seconds field .tv_sec by multiplying it with NSEC_PER_SEC. However, both operands are of type long, resulting in an unintended overflow. The patch fixes the issue by using the helper function from time.h. CC: stable <[email protected]> Signed-off-by: Richard Cochran <[email protected]> Tested-by: Aaron Brown <[email protected]> Signed-off-by: Jeff Kirsher <[email protected]>
Diffstat (limited to 'drivers/net/wireless/rtlwifi/debug.c')
0 files changed, 0 insertions, 0 deletions