Home
last modified time | relevance | path

Searched hist:"1 ae71d99" (Results 1 – 1 of 1) sorted by relevance

/openbmc/linux/net/ethtool/
H A Dlinkstate.c1ae71d99 Wed Jun 24 17:09:08 CDT 2020 Michal Kubecek <mkubecek@suse.cz> ethtool: fix error handling in linkstate_prepare_data()

When getting SQI or maximum SQI value fails in linkstate_prepare_data(), we
must not return without calling ethnl_ops_complete(dev) as that could
result in imbalance between ethtool_ops ->begin() and ->complete() calls.

Fixes: 806602191592 ("ethtool: provide UAPI for PHY Signal Quality Index (SQI)")
Signed-off-by: Michal Kubecek <mkubecek@suse.cz>
Signed-off-by: David S. Miller <davem@davemloft.net>
1ae71d99 Wed Jun 24 17:09:08 CDT 2020 Michal Kubecek <mkubecek@suse.cz> ethtool: fix error handling in linkstate_prepare_data()

When getting SQI or maximum SQI value fails in linkstate_prepare_data(), we
must not return without calling ethnl_ops_complete(dev) as that could
result in imbalance between ethtool_ops ->begin() and ->complete() calls.

Fixes: 806602191592 ("ethtool: provide UAPI for PHY Signal Quality Index (SQI)")
Signed-off-by: Michal Kubecek <mkubecek@suse.cz>
Signed-off-by: David S. Miller <davem@davemloft.net>