Skip to content
Snippets Groups Projects
Commit 3cc92990 authored by Wright Feng's avatar Wright Feng Committed by Greg Kroah-Hartman
Browse files

brcmfmac: return error when getting invalid max_flowrings from dongle


[ Upstream commit 2aca4f37 ]

When firmware hit trap at initialization, host will read abnormal
max_flowrings number from dongle, and it will cause kernel panic when
doing iowrite to initialize dongle ring.
To detect this error at early stage, we directly return error when getting
invalid max_flowrings(>256).

Signed-off-by: default avatarWright Feng <wright.feng@cypress.com>
Signed-off-by: default avatarChi-hsien Lin <chi-hsien.lin@cypress.com>
Signed-off-by: default avatarIan Lin <ian.lin@infineon.com>
Signed-off-by: default avatarKalle Valo <kvalo@kernel.org>
Link: https://lore.kernel.org/r/20220929031001.9962-3-ian.lin@infineon.com


Signed-off-by: default avatarSasha Levin <sashal@kernel.org>
parent e44bfef5
No related branches found
No related tags found
No related merge requests found
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment