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: NBen Hutchings <ben@decadent.org.uk>
Showing
想要评论请 注册 或 登录