diff options
author | Shannon Nelson <shannon.nelson@amd.com> | 2023-08-24 09:17:50 -0700 |
---|---|---|
committer | Jakub Kicinski <kuba@kernel.org> | 2023-08-25 19:05:58 -0700 |
commit | 91202ce78fcd070982a115f0bf6f328af619aa00 (patch) | |
tree | c6ca9edf2a7f2ffc741d8814216cbfa60848414e /drivers/net/phy/dp83867.c | |
parent | b3d26c5702c7d6c45456326e56d2ccf3f103e60f (diff) |
pds_core: protect devlink callbacks from fw_down state
Don't access structs that have been cleared when in the fw_down
state and the various structs have been cleaned and are waiting
to recover. This caused a panic on rmmod when already in fw_down
and devlink_param_unregister() tried to check the parameters.
Fixes: 40ced8944536 ("pds_core: devlink params for enabling VIF support")
Signed-off-by: Shannon Nelson <shannon.nelson@amd.com>
Reviewed-by: Brett Creeley <brett.creeley@amd.com>
Reviewed-by: Simon Horman <horms@kernel.org>
Link: https://lore.kernel.org/r/20230824161754.34264-2-shannon.nelson@amd.com
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
Diffstat (limited to 'drivers/net/phy/dp83867.c')
0 files changed, 0 insertions, 0 deletions