From: Richard Cochran Date: Tue, 23 Apr 2013 01:56:34 +0000 (+0000) Subject: e1000e: fix numeric overflow in phc settime method X-Git-Tag: omap-for-v3.10/dt-fixes-for-merge-window~65^2~11^2~7 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=73e3dd6b45c4c870fc2641eb04c24e3f12dab1e0;p=pandora-kernel.git 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 Signed-off-by: Richard Cochran Tested-by: Aaron Brown Signed-off-by: Jeff Kirsher --- Reading git-diff-tree failed