Skip to content

Commit

Permalink
net: wireless: bcmdhd4358: attempt to handle NPE at init timeout
Browse files Browse the repository at this point in the history
  • Loading branch information
ananjaser1211 committed Dec 27, 2023
1 parent 5af1a13 commit 485d53e
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions drivers/net/wireless/bcmdhd4358/dhd_linux.c
Expand Up @@ -8875,6 +8875,11 @@ extern dhd_pub_t *link_recovery;
void dhd_host_recover_link(void)
{
#if defined(BCMPCIE)
if (!link_recovery) {
printk("%s: link_recovery is NULL\n", __func__);
// Exit to avoid NPE
return;
}
link_recovery->hang_reason = HANG_REASON_PCIE_LINK_DOWN;
dhd_os_send_hang_message(link_recovery);
#endif /* BCMPCIE */
Expand Down

0 comments on commit 485d53e

Please sign in to comment.