Skip to content
Commit fb95cd8d authored by Ben Hutchings's avatar Ben Hutchings
Browse files

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: default avatarBen Hutchings <ben@decadent.org.uk>
parent eb02a272
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment