Skip to content
Commit f1172f3e authored by Ludvig Pärsson's avatar Ludvig Pärsson Committed by Paolo Abeni
Browse files

ethtool: netlink: Add missing ethnl_ops_begin/complete



Accessing an ethernet device that is powered off or clock gated might
cause the CPU to hang. Add ethnl_ops_begin/complete in
ethnl_set_features() to protect against this.

Fixes: 0980bfcd ("ethtool: set netdev features with FEATURES_SET request")
Signed-off-by: default avatarLudvig Pärsson <ludvig.parsson@axis.com>
Link: https://lore.kernel.org/r/20240117-etht2-v2-1-1a96b6e8c650@axis.com


Signed-off-by: default avatarPaolo Abeni <pabeni@redhat.com>
parent dd2d40ac
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment