Commit 927069d
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: 8f7ae5a ("bnxt_en: improve TX timestamping FIFO configuration")
Reported-by: Taehee Yoo <[email protected]>
Closes: https://lore.kernel.org/netdev/CAMArcTWDe2cd41=ub=zzvYifaYcYv-N-csxfqxUvejy_L0D6UQ@mail.gmail.com/
Signed-off-by: Vadim Fedorenko <[email protected]>
Reviewed-by: Jacob Keller <[email protected]>
Reviewed-by: Michael Chan <[email protected]>
Tested-by: Taehee Yoo <[email protected]>
Link: https://patch.msgid.link/[email protected]
Signed-off-by: Jakub Kicinski <[email protected]>1 parent 0a7bc4d commit 927069d
1 file changed
+1
-1
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
16006 | 16006 | | |
16007 | 16007 | | |
16008 | 16008 | | |
16009 | | - | |
16010 | 16009 | | |
| 16010 | + | |
16011 | 16011 | | |
16012 | 16012 | | |
16013 | 16013 | | |
| |||
0 commit comments