summaryrefslogtreecommitdiff
path: root/include/linux/debugobjects.h
diff options
context:
space:
mode:
authorKuan-Chung Chen <damon.chen@realtek.com>2025-11-11 05:24:49 +0300
committerPing-Ke Shih <pkshih@realtek.com>2025-11-13 04:36:40 +0300
commit1dd7e743dd37361c8c1ac89355a8da738e2b81fb (patch)
tree32ef78c012157065b036c4d266b8ec39b468cee3 /include/linux/debugobjects.h
parentb37fb77d4530f711a08b6dd860a8a4839897aba2 (diff)
downloadlinux-1dd7e743dd37361c8c1ac89355a8da738e2b81fb.tar.xz
wifi: rtw89: phy: fix out-of-bounds access in rtw89_phy_read_txpwr_limit()
Coverity reported a potential out-of-bounds access when 'bw' exceeds the valid range for the specified band. Add a helper `rtw89_bw_is_valid()` to check bandwidth validity for each band before accessing limit tables. Addresses-Coverity-ID: 1598844 ("Out-of-bounds access") Addresses-Coverity-ID: 1598896 ("Out-of-bounds access") Signed-off-by: Kuan-Chung Chen <damon.chen@realtek.com> Signed-off-by: Ping-Ke Shih <pkshih@realtek.com> Link: https://patch.msgid.link/20251111022452.28093-6-pkshih@realtek.com
Diffstat (limited to 'include/linux/debugobjects.h')
0 files changed, 0 insertions, 0 deletions