]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/commit
MFC r341582:
authorHans Petter Selasky <hselasky@FreeBSD.org>
Wed, 12 Dec 2018 13:04:53 +0000 (13:04 +0000)
committerHans Petter Selasky <hselasky@FreeBSD.org>
Wed, 12 Dec 2018 13:04:53 +0000 (13:04 +0000)
commit1964e8fbd530fa595dbc20b203e02aed1257fb6d
tree1e62740b82a572376d9f31e68ed3ede1f6def15f
parent0c8d96f998da713de80c0b5492cf629294f6ea7d
MFC r341582:
mlx5en: Fix race in mlx5e_ethtool_debug_stats().

Writing to the debug stats variable must be locked,
else serialization will be lost which might cause
various kernel panics due to creating and destroying
sysctls out of order.

Make sure the sysctl context is initialized after freeing
the sysctl nodes, else they can be freed twice.

Sponsored by:   Mellanox Technologies
sys/dev/mlx5/mlx5_en/en.h
sys/dev/mlx5/mlx5_en/mlx5_en_ethtool.c
sys/dev/mlx5/mlx5_en/mlx5_en_main.c