From: Kalesh AP Date: Thu, 17 Jul 2014 10:50:23 +0000 (+0530) Subject: be2net: fix return status of some ethtool methods X-Git-Tag: omap-for-v3.17/fixes-against-rc2~149^2~131^2~9 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=0532d4e36678d626b41528c00fefe3d6e04130b3;p=pandora-kernel.git be2net: fix return status of some ethtool methods ethtool expects a -ve status value to be returned when a driver method encounters an error. The driver was directly passing the error status returned by FW (a positive value) to ethtool. This patch fixes this by returning -EIO status in cases where FW returns an error. Signed-off-by: Kalesh AP Signed-off-by: Sathya Perla Signed-off-by: David S. Miller --- Reading git-diff-tree failed