diff options
author | Vadim Fedorenko <vadfed@meta.com> | 2025-04-30 20:03:43 +0300 |
---|---|---|
committer | Jakub Kicinski <kuba@kernel.org> | 2025-05-01 16:58:20 +0300 |
commit | 927069d5c40c1cfa7b2d13cfc6d7d58bc6f85c50 (patch) | |
tree | f3fa18424ee8a53962cf9660eb87a2c20473f321 /drivers/platform/surface/aggregator/ssh_parser.c | |
parent | 0a7bc4d6b04bed1257faf9502f9b4076bac466ea (diff) | |
download | linux-927069d5c40c1cfa7b2d13cfc6d7d58bc6f85c50.tar.xz |
bnxt_en: fix module unload sequence
Recent updates to the PTP part of bnxt changed the way PTP FIFO is
cleared, skbs waiting for TX timestamps are now cleared during
ndo_close() call. To do clearing procedure, the ptp structure must
exist and point to a valid address. Module destroy sequence had ptp
clear code running before netdev close causing invalid memory access and
kernel crash. Change the sequence to destroy ptp structure after device
close.
Fixes: 8f7ae5a85137 ("bnxt_en: improve TX timestamping FIFO configuration")
Reported-by: Taehee Yoo <ap420073@gmail.com>
Closes: https://lore.kernel.org/netdev/CAMArcTWDe2cd41=ub=zzvYifaYcYv-N-csxfqxUvejy_L0D6UQ@mail.gmail.com/
Signed-off-by: Vadim Fedorenko <vadfed@meta.com>
Reviewed-by: Jacob Keller <jacob.e.keller@intel.com>
Reviewed-by: Michael Chan <michael.chan@broadcom.com>
Tested-by: Taehee Yoo <ap420073@gmail.com>
Link: https://patch.msgid.link/20250430170343.759126-1-vadfed@meta.com
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
Diffstat (limited to 'drivers/platform/surface/aggregator/ssh_parser.c')
0 files changed, 0 insertions, 0 deletions