]> git.baikalelectronics.ru Git - kernel.git/commit
net: ethtool: Handle missing cable test TDR parameters
authorAndrew Lunn <andrew@lunn.ch>
Wed, 24 Jun 2020 01:25:45 +0000 (03:25 +0200)
committerDavid S. Miller <davem@davemloft.net>
Wed, 24 Jun 2020 03:21:01 +0000 (20:21 -0700)
commitf203b2d7921c700f5c65d92387589d07656b7e30
treee29ec49ea458c4e7612dfa5b0aa8426bce1d5779
parentaf466d692736a15e0bad8d58d9a16606532f5ce9
net: ethtool: Handle missing cable test TDR parameters

A last minute change put the TDR cable test parameters into a nest.
The validation is not sufficient, resulting in an oops if the nest is
missing. Set default values first, then update them if the nest is
provided.

Fixes: 1c100e423b10 ("net: ethtool: Allow PHY cable test TDR data to configured")
Signed-off-by: Andrew Lunn <andrew@lunn.ch>
Signed-off-by: David S. Miller <davem@davemloft.net>
net/ethtool/cabletest.c