diff options
| author | Pavan Chebbi <[email protected]> | 2023-06-07 07:54:08 +0000 |
|---|---|---|
| committer | Paolo Abeni <[email protected]> | 2023-06-08 08:52:45 +0000 |
| commit | 319a7827df9784048abe072afe6b4fb4501d8de4 (patch) | |
| tree | 24759836e3848c8c2f5ab190b51cb6ba794f83de /drivers/usb/cdns3/cdns3-gadget.c | |
| parent | bnxt_en: Skip firmware fatal error recovery if chip is not accessible (diff) | |
| download | kernel-319a7827df9784048abe072afe6b4fb4501d8de4.tar.gz kernel-319a7827df9784048abe072afe6b4fb4501d8de4.zip | |
bnxt_en: Prevent kernel panic when receiving unexpected PHC_UPDATE event
The firmware can send PHC_RTC_UPDATE async event on a PF that may not
have PTP registered. In such a case, there will be a null pointer
deference for bp->ptp_cfg when we try to handle the event.
Fix it by not registering for this event with the firmware if !bp->ptp_cfg.
Also, check that bp->ptp_cfg is valid before proceeding when we receive
the event.
Fixes: 8bcf6f04d4a5 ("bnxt_en: Handle async event when the PHC is updated in RTC mode")
Signed-off-by: Pavan Chebbi <[email protected]>
Signed-off-by: Michael Chan <[email protected]>
Signed-off-by: Paolo Abeni <[email protected]>
Diffstat (limited to 'drivers/usb/cdns3/cdns3-gadget.c')
0 files changed, 0 insertions, 0 deletions
