OSDN Git Service

rtl8723au: Fix smatch problems in hal/rtl8723a_mp.c
authorLarry Finger <Larry.Finger@lwfinger.net>
Thu, 12 Sep 2013 00:08:08 +0000 (19:08 -0500)
committerLarry Finger <Larry.Finger@lwfinger.net>
Thu, 12 Sep 2013 00:08:08 +0000 (19:08 -0500)
commit26608b4900277fdd3ab458c8c4f9f77c3dfa18c8
treef2a0509730ed2bb9cbd7fd27258954124a424e83
parentf43a0acbd827817574cea878ea2d26e78e39f341
rtl8723au: Fix smatch problems in hal/rtl8723a_mp.c

Smatch lists the following:
  CHECK   /home/finger/rtl8723au/hal/rtl8723a_mp.c
/home/finger/rtl8723au/hal/rtl8723a_mp.c:538 Hal_SetAntennaPathPower() error: buffer overflow 'TxPowerLevel' 2 <= 2
/home/finger/rtl8723au/hal/rtl8723a_mp.c:581 Hal_SetTxPower() error: buffer overflow 'TxPowerLevel' 2 <= 2
/home/finger/rtl8723au/hal/rtl8723a_mp.c:599 Hal_SetTxAGCOffset() info: ignoring unreachable code.
/home/finger/rtl8723au/hal/rtl8723a_mp.c:599 Hal_SetTxAGCOffset() info: ignoring unreachable code.

The buffer overflow errors are again an off-by=one situation.

Signed-off-by: Larry Finger <Larry.Finger@lwfinger.net>
hal/rtl8723a_mp.c
include/Hal8192CPhyCfg.h