net: ethtool: don't ignore return from driver get_fecparam method
authorEdward Cree <ecree@solarflare.com>
Wed, 28 Feb 2018 19:15:58 +0000 (19:15 +0000)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 30 May 2018 05:52:09 +0000 (07:52 +0200)
commitd9ed3aed6d83a6ff60f2e4781ae47d5b3e19619a
treebf04705d40c4c57660940742a0536c21636b635a
parentf03cd5862f55956afb208b695e45e681b160181e
net: ethtool: don't ignore return from driver get_fecparam method

[ Upstream commit a6d50512b4d86ecd9f5952525e454583be1c3b14 ]

If ethtool_ops->get_fecparam returns an error, pass that error on to the
 user, rather than ignoring it.

Fixes: 1a5f3da20bd9 ("net: ethtool: add support for forward error correction modes")
Signed-off-by: Edward Cree <ecree@solarflare.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Signed-off-by: Sasha Levin <alexander.levin@microsoft.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
net/core/ethtool.c