]> www.infradead.org Git - users/hch/misc.git/commit
eth: gve: add missing netdev locks on reset and shutdown paths
authorJakub Kicinski <kuba@kernel.org>
Fri, 28 Mar 2025 16:47:42 +0000 (09:47 -0700)
committerJakub Kicinski <kuba@kernel.org>
Mon, 31 Mar 2025 23:53:05 +0000 (16:53 -0700)
commit9e3267cf02c240065fddfbe1a58cdb99d0b00531
tree809b8cdcf17aa9d4a1a8d6f913a82cde075098a8
parent0a541eaff5d6e5a8b40360476ac20defdce5c4b1
eth: gve: add missing netdev locks on reset and shutdown paths

All the misc entry points end up calling into either gve_open()
or gve_close(), they take rtnl_lock today but since the recent
instance locking changes should also take the instance lock.

Found by code inspection and untested.

Fixes: cae03e5bdd9e ("net: hold netdev instance lock during queue operations")
Acked-by: Stanislav Fomichev <sdf@fomichev.me>
Reviewed-by: Harshitha Ramamurthy <hramamurthy@google.com>
Link: https://patch.msgid.link/20250328164742.1268069-1-kuba@kernel.org
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
drivers/net/ethernet/google/gve/gve_main.c