Kees Cook d5549e9a6b ath11k: Use memset_startat() for clearing queue descriptors
In preparation for FORTIFY_SOURCE performing compile-time and run-time
field bounds checking for memset(), avoid intentionally writing across
neighboring fields.

Use memset_startat() so memset() doesn't get confused about writing
beyond the destination member that is intended to be the starting point
of zeroing through the end of the struct. Additionally split up a later
field-spanning memset() so that memset() can reason about the size.

Signed-off-by: Kees Cook <keescook@chromium.org>
Signed-off-by: Kalle Valo <kvalo@codeaurora.org>
Link: https://lore.kernel.org/r/20211118202416.1286046-1-keescook@chromium.org
2021-11-24 19:08:43 +02:00
..
2021-10-20 12:39:44 +03:00
2021-10-20 12:39:45 +03:00
2021-11-02 06:20:58 -07:00
2021-10-20 12:39:46 +03:00
2021-10-20 12:39:46 +03:00
2021-10-28 16:26:18 +03:00
2021-10-27 10:31:33 +03:00
2021-10-20 12:39:47 +03:00
2020-11-10 09:39:08 +01:00
2021-10-22 10:20:56 -07:00
2021-10-20 12:39:46 +03:00
2021-07-23 10:34:31 +02:00
2021-10-20 12:39:47 +03:00