From: Ben Hutchings Date: Wed, 14 May 2014 23:46:45 +0000 (+0100) Subject: ethtool: Return immediately on error in ethtool_copy_validate_indir() X-Git-Tag: omap-for-v3.16/fixes-against-rc1~36^2~83^2~7 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=fb95cd8d1473b1cc90eccbd6a30641f3851c8506;p=pandora-kernel.git ethtool: Return immediately on error in ethtool_copy_validate_indir() We must return -EFAULT immediately rather than continuing into the loop. Similarly, we may as well return -EINVAL directly. Signed-off-by: Ben Hutchings --- Reading git-diff-tree failed