Skip to content

Commit 22291ce

Browse files
haukelinvjw
authored andcommitted
brcmsmac: handle non pci in ai_deviceremoved()
This is based on code from the Broadcom SDK. Signed-off-by: Hauke Mehrtens <hauke@hauke-m.de> Tested-by: Arend van Spriel <arend@broadcom.com> Signed-off-by: John W. Linville <linville@tuxdriver.com>
1 parent a06f210 commit 22291ce

1 file changed

Lines changed: 3 additions & 0 deletions

File tree

  • drivers/net/wireless/brcm80211/brcmsmac

‎drivers/net/wireless/brcm80211/brcmsmac/aiutils.c‎

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -816,6 +816,9 @@ bool ai_deviceremoved(struct si_pub *sih)
816816

817817
sii = (struct si_info *)sih;
818818

819+
if (sii->icbus->hosttype != BCMA_HOSTTYPE_PCI)
820+
return false;
821+
819822
pci_read_config_dword(sii->pcibus, PCI_VENDOR_ID, &w);
820823
if ((w & 0xFFFF) != PCI_VENDOR_ID_BROADCOM)
821824
return true;

0 commit comments

Comments
 (0)