brcmfmac: firmware: Allocate space for default boardrev in nvram
authorHector Martin <marcan@marcan.st>
Mon, 31 Jan 2022 16:07:06 +0000 (01:07 +0900)
committerKalle Valo <kvalo@kernel.org>
Tue, 1 Feb 2022 12:27:04 +0000 (14:27 +0200)
commitd19d8e3ba256f81ea4a27209dbbd1f0a00ef1903
tree9ba403aaf335742e3b24213c05333383ee2c2981
parent5e90f0f3ead014867dade7a22f93958119f5efab
brcmfmac: firmware: Allocate space for default boardrev in nvram

If boardrev is missing from the NVRAM we add a default one, but this
might need more space in the output buffer than was allocated. Ensure
we have enough padding for this in the buffer.

Fixes: 46f2b38a91b0 ("brcmfmac: insert default boardrev in nvram data if missing")
Reviewed-by: Arend van Spriel <arend.vanspriel@broadcom.com>
Cc: stable@vger.kernel.org
Signed-off-by: Hector Martin <marcan@marcan.st>
Reviewed-by: Andy Shevchenko <andy.shevchenko@gmail.com>
Signed-off-by: Kalle Valo <kvalo@kernel.org>
Link: https://lore.kernel.org/r/20220131160713.245637-3-marcan@marcan.st
drivers/net/wireless/broadcom/brcm80211/brcmfmac/firmware.c