diff options
author | Brian Norris <briannorris@chromium.org> | 2019-10-14 14:26:48 -0700 |
---|---|---|
committer | Kalle Valo <kvalo@codeaurora.org> | 2019-10-16 10:35:25 +0300 |
commit | 89dca86d29b46f2a5f38ea6476cfd441bd205d25 (patch) | |
tree | 850c7ccb932057b33b198672e8500e6003a4aafb | |
parent | 868ad21496020ef83d41fdeed3b0a63de2a3caa5 (diff) | |
download | linux-89dca86d29b46f2a5f38ea6476cfd441bd205d25.tar.bz2 |
rtw88: mark rtw_fw_hdr __packed
The use of u8 and __le16 in this struct assumes that it's going to be
packed to byte alignment. C doesn't guarantee that, so we should mark
this __packed.
Fixes: cc20a7139836 ("rtw88: use struct rtw_fw_hdr to access firmware header")
Cc: Ping-Ke Shih <pkshih@realtek.com>
Signed-off-by: Brian Norris <briannorris@chromium.org>
Signed-off-by: Kalle Valo <kvalo@codeaurora.org>
-rw-r--r-- | drivers/net/wireless/realtek/rtw88/fw.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/net/wireless/realtek/rtw88/fw.h b/drivers/net/wireless/realtek/rtw88/fw.h index 4f7999394235..73d1b9ca8efc 100644 --- a/drivers/net/wireless/realtek/rtw88/fw.h +++ b/drivers/net/wireless/realtek/rtw88/fw.h @@ -127,7 +127,7 @@ struct rtw_fw_hdr { __le32 emem_size; __le32 emem_addr; __le32 imem_addr; -}; +} __packed; /* C2H */ #define GET_CCX_REPORT_SEQNUM(c2h_payload) (c2h_payload[8] & 0xfc) |