mirror of
https://github.com/torvalds/linux.git
synced 2026-12-04 12:24:18 +00:00
In the brcmf_count_20mhz_channels function we are looping through a list
of channels received from firmware. Since the index of the first channel
is 0 the condition leads to an off by one bug. This is causing us to hit
the WARN_ON_ONCE(1) calls in the brcmu_d11n_decchspec function, which is
how I discovered the bug.
Introduced by:
commit b48d891676
("brcmfmac: rework wiphy structure setup")
Acked-by: Arend van Spriel <[email protected]>
Signed-off-by: Emil Goode <[email protected]>
Signed-off-by: John W. Linville <[email protected]>