]> git.baikalelectronics.ru Git - kernel.git/commit
ethtool: Validate master slave configuration before rtnl_lock()
authorDanielle Ratson <danieller@nvidia.com>
Tue, 2 Feb 2021 18:06:05 +0000 (20:06 +0200)
committerJakub Kicinski <kuba@kernel.org>
Thu, 4 Feb 2021 02:37:28 +0000 (18:37 -0800)
commitb7d71432fd44cf4e5af0e02aa35ccf7dedf53ebd
tree8630972007bebb2d93b431d649de742b90bb24a2
parent925d437f3cbff3867ea1e28d05358519cb816916
ethtool: Validate master slave configuration before rtnl_lock()

Create a new function for input validations to be called before
rtnl_lock() and move the master slave validation to that function.

This would be a cleanup for next patch that would add another validation
to the new function.

Signed-off-by: Danielle Ratson <danieller@nvidia.com>
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
net/ethtool/linkmodes.c