Skip to contentSkip to conversation

Staging: rtl8192e: off by one in

PATCH Dan Carpenter 1 participant 1 message Sep 21, 2011 Kernel janitors

lore
Share & tools
lore
#0 lore raw
Quoted 5 lines · Larry Finger
Quoted 4 lines · Dan Carpenter

COUNTRY_CODE_MAX is not a valid country code. We're off by one here. This gets passed to Dot11d_Channelmap() where it's used as an offset into the ChannelPlan[] array.

Quoted 7 lines
Quoted 1 line

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