dz0ny / rt8192cu

Realtek driver for USB wlan cards: 8188C, 8192C
162 stars 34 forks source link

Fix off-by-one error when declaring the RF_Shadow register array. #11

Closed pullmoll closed 9 years ago

pullmoll commented 9 years ago

When compiling rt8192cu with GCC 4.9.x there are several warnings about out of bound accesses to the static RF_Shadow register array, which originate from code lines using <= RF6052_MAX_REG as loop termination criteria. The array's second level size is defined as RF6052_MAX_REG while it (most probably) should be RF6052_MAX_REG+1 to cover all 64 registers.