mirror of
https://github.com/torvalds/linux.git
synced 2026-06-05 04:56:13 +02:00
wifi: rtw89: fw: get sb_sel_ver via get_unaligned_le32()
The sb_sel_ver is selection version for secure boot recorded in firmware binary data, and its size is 4 and offset is 58 (not natural alignment). Use get_unaligned_le32() to get this value safely. Find this by reviewing. Signed-off-by: Ping-Ke Shih <pkshih@realtek.com> Link: https://patch.msgid.link/20250217064308.43559-3-pkshih@realtek.com
This commit is contained in:
parent
f11d042b3a
commit
2f9da853f4
|
|
@ -324,7 +324,7 @@ static int __parse_formatted_mssc(struct rtw89_dev *rtwdev,
|
|||
if (!sec->secure_boot)
|
||||
goto out;
|
||||
|
||||
sb_sel_ver = le32_to_cpu(section_content->sb_sel_ver.v);
|
||||
sb_sel_ver = get_unaligned_le32(§ion_content->sb_sel_ver.v);
|
||||
if (sb_sel_ver && sb_sel_ver != sec->sb_sel_mgn)
|
||||
goto ignore;
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user