Staging: rtl8192e: off by one in
Quoted 5 lines · Larry Finger
Quoted 4 lines · Dan Carpenter
COUNTRY_CODE_MAXis not a valid country code. We're off by one here. This gets passed toDot11d_Channelmap()where it's used as an offset into the ChannelPlan[] array.
Quoted 7 lines
Quoted 1 line
Signed-off-by Dan Carpenter<[email protected]>Signed-off-by Larry Finger <[email protected]>Dan, good catch. Did this cause a problem, or did you find it while reading the code?
It was a Smatch thing. I caught it when I updated my smatch_data/.
regards,
dan carpenter