diff options
| author | Ping-Ke Shih <pkshih@realtek.com> | 2025-03-25 10:54:24 +0800 |
|---|---|---|
| committer | Ping-Ke Shih <pkshih@realtek.com> | 2025-03-31 14:07:03 +0800 |
| commit | bc1265b5c982fc73077812a8be727ba3d734164b (patch) | |
| tree | 47ecf8a5ee32bdecf9e9db2431273e751121e424 /drivers/fpga/altera-fpga2sdram.c | |
| parent | 81433a8a4f404d3e52e8e591fdc9409101dadf57 (diff) | |
wifi: rtw89: fw: cast mfw_hdr pointer from address of zeroth byte of firmware->data
The firmware->size is validated before using firmware->data, but Coverity
still reports:
Downcasting "firmware->data" from "u8 const *" to "struct rtw89_mfw_hdr"
implies that the data that this pointer points to is tainted."
Using &firmware->data[0] to avoid the warning. No change logic at all.
Addresses-Coverity-ID: 1494046 ("Untrusted loop bound")
Addresses-Coverity-ID: 1544385 ("Untrusted array index read")
Signed-off-by: Ping-Ke Shih <pkshih@realtek.com>
Link: https://patch.msgid.link/20250325025424.14079-1-pkshih@realtek.com
Diffstat (limited to 'drivers/fpga/altera-fpga2sdram.c')
0 files changed, 0 insertions, 0 deletions
