summaryrefslogtreecommitdiffstats
path: root/crypto/sha1_generic.c
diff options
context:
space:
mode:
authorRichard Cochran <richardcochran@gmail.com>2013-04-23 03:56:34 +0200
committerJeff Kirsher <jeffrey.t.kirsher@intel.com>2013-04-26 03:30:02 +0200
commit73e3dd6b45c4c870fc2641eb04c24e3f12dab1e0 (patch)
treec910921b9519b792c7a1f43963bb7804e7c714c4 /crypto/sha1_generic.c
parentopenvswitch: Use parallel_ops genl. (diff)
downloadlinux-73e3dd6b45c4c870fc2641eb04c24e3f12dab1e0.tar.xz
linux-73e3dd6b45c4c870fc2641eb04c24e3f12dab1e0.zip
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 <stable@vger.kernel.org> Signed-off-by: Richard Cochran <richardcochran@gmail.com> Tested-by: Aaron Brown <aaron.f.brown@intel.com> Signed-off-by: Jeff Kirsher <jeffrey.t.kirsher@intel.com>
Diffstat (limited to 'crypto/sha1_generic.c')
0 files changed, 0 insertions, 0 deletions