]> git.baikalelectronics.ru Git - kernel.git/commit
libertas_tf: Add missing __packed annotations
authorKees Cook <keescook@chromium.org>
Wed, 1 Dec 2021 17:32:34 +0000 (09:32 -0800)
committerKalle Valo <kvalo@kernel.org>
Wed, 8 Dec 2021 18:39:54 +0000 (20:39 +0200)
commitd49542383670a9f17f6fd3e8ca5d3e46c0437062
tree3f5ee5e72d77f761b0f2909d7ec7aac84fdffad9
parent7d976d4270c1fee5cdae11dc60f068de1743334c
libertas_tf: Add missing __packed annotations

The earlier __packed annotations added in commit e758a4a53e45 ("libertas:
Fix alignment issues in libertas core") were not duplicated when
libertas_af was added in commit 706da1bf104c ("libertas_tf: header file"),
even though they share several structure definitions. Add the missing
annotations which commit 704165af94ed ("libertas_tf: Use struct_group()
for memcpy() region") exposed. Quoting the prior libertas fix: "Data
structures that come over the wire from the WLAN firmware must be
packed."

Reported-by: kernel test robot <lkp@intel.com>
Link: https://lore.kernel.org/linux-mm/202111302102.apaePz2J-lkp@intel.com
Fixes: 704165af94ed ("libertas_tf: Use struct_group() for memcpy() region")
Fixes: 706da1bf104c ("libertas_tf: header file")
Signed-off-by: Kees Cook <keescook@chromium.org>
Signed-off-by: Kalle Valo <kvalo@kernel.org>
Link: https://lore.kernel.org/r/20211201173234.578124-3-keescook@chromium.org
drivers/net/wireless/marvell/libertas_tf/libertas_tf.h