2
0
mirror of https://github.com/edk2-porting/linux-next.git synced 2024-12-26 06:04:14 +08:00
linux-next/drivers/net/ethernet/intel
Richard Cochran 73e3dd6b45 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>
2013-04-25 18:30:02 -07:00
..
e1000 net: vlan: add protocol argument to packet tagging functions 2013-04-19 14:46:06 -04:00
e1000e e1000e: fix numeric overflow in phc settime method 2013-04-25 18:30:02 -07:00
igb igb: Bump version of driver 2013-04-24 20:47:48 -07:00
igbvf net: vlan: add protocol argument to packet tagging functions 2013-04-19 14:46:06 -04:00
ixgb net: vlan: add protocol argument to packet tagging functions 2013-04-19 14:46:06 -04:00
ixgbe ixgbe: add WOL support for new subdevice ID 2013-04-24 17:53:37 -07:00
ixgbevf net: vlan: add protocol argument to packet tagging functions 2013-04-19 14:46:06 -04:00
e100.c e100: Add dma mapping error check 2013-04-10 15:25:15 -04:00
Kconfig Driver core patches for 3.9-rc1 2013-02-21 12:05:51 -08:00
Makefile