brcmfmac: firmware: Do not crash on a NULL board_type
authorHector Martin <marcan@marcan.st>
Fri, 7 Jan 2022 02:41:49 +0000 (11:41 +0900)
committerHector Martin <marcan@marcan.st>
Tue, 18 Jan 2022 11:22:05 +0000 (20:22 +0900)
commit8acd18b34fc3aaafa319db2cc42f06a5528b7db6
tree84bbb23e6029182dfd1c6c745c228e07c4d1ede7
parent43af7b6ad9599ea3d77ed2d2d068b85f8929c99f
brcmfmac: firmware: Do not crash on a NULL board_type

This unbreaks support for USB devices, which do not have a board_type
to create an alt_path out of and thus were running into a NULL
dereference.

Fixes: 5ff013914c62 ("brcmfmac: firmware: Allow per-board firmware binaries")
Signed-off-by: Hector Martin <marcan@marcan.st>
drivers/net/wireless/broadcom/brcm80211/brcmfmac/firmware.c