From: David Ertman Date: Thu, 5 Sep 2013 04:24:25 +0000 (+0000) Subject: e1000e: fix overrun of PHY RAR array X-Git-Tag: v3.12-rc2~14^2~48^2 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=c3a0dce35af02846bdaa1df437493e2fd547ec2f;p=pandora-kernel.git e1000e: fix overrun of PHY RAR array When copying the MAC RAR registers to PHY there is an error in the calculation of the rar_entry_count, which causes a write of unknown/ undefined register space in the MAC to unknown/undefined register space in the PHY. This patch fixes the overrun with writing to the PHY RAR and also fixes the ethtool offline register tests so that the correctly addressed registers have the appropriate bitmasks for R/W and RO bits for affected parts. Shawn Rader gets credit for finding and fixing the register overrun. Signed-off-by: Dave Ertman CC: Shawn Rader Tested-by: Aaron Brown Signed-off-by: Jeff Kirsher --- Reading git-diff-tree failed