]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
pds_core: delete VF dev on reset
authorShannon Nelson <shannon.nelson@amd.com>
Fri, 16 Feb 2024 22:29:51 +0000 (14:29 -0800)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Fri, 9 May 2025 07:43:58 +0000 (09:43 +0200)
commit452fa190dd2e4751cc7244c1e39565fb4a262b7d
treeab1ad2d154b37ddd26b8c8e04a5d353b7073ebf1
parent5e51c0b51b25e4a21d6b52e34cddde76ebe8dea2
pds_core: delete VF dev on reset

[ Upstream commit 2dac60e062340c1e5c975ad6465192d11c40d47a ]

When the VF is hit with a reset, remove the aux device in
the prepare for reset and try to restore it after the reset.
The userland mechanics will need to recover and rebuild whatever
uses the device afterwards.

Reviewed-by: Brett Creeley <brett.creeley@amd.com>
Signed-off-by: Shannon Nelson <shannon.nelson@amd.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Stable-dep-of: dfd76010f8e8 ("pds_core: remove write-after-free of client_id")
Signed-off-by: Sasha Levin <sashal@kernel.org>
drivers/net/ethernet/amd/pds_core/auxbus.c
drivers/net/ethernet/amd/pds_core/main.c