aboutsummaryrefslogtreecommitdiffstats
path: root/net/switchdev/switchdev.c
diff options
context:
space:
mode:
authorKees Cook <[email protected]>2021-06-17 17:10:58 +0000
committerKalle Valo <[email protected]>2021-06-22 15:28:25 +0000
commitd3a1a18ab034fcbec575d10f016b4ae02358cbde (patch)
tree73980a615c1428a669fcba845c6def58c8c30223 /net/switchdev/switchdev.c
parentath11k: Avoid memcpy() over-reading of he_cap (diff)
downloadkernel-d3a1a18ab034fcbec575d10f016b4ae02358cbde.tar.gz
kernel-d3a1a18ab034fcbec575d10f016b4ae02358cbde.zip
wcn36xx: Avoid memset() beyond end of struct field
In preparation for FORTIFY_SOURCE performing compile-time and run-time field bounds checking for memset(), avoid intentionally writing across neighboring array fields. Instead of writing past the end of the header to reach the rest of the body, replace the redundant function with existing macro to wipe struct contents and set field values. Additionally adjusts macro to add missing parens. Signed-off-by: Kees Cook <[email protected]> Signed-off-by: Kalle Valo <[email protected]> Link: https://lore.kernel.org/r/[email protected]
Diffstat (limited to 'net/switchdev/switchdev.c')
0 files changed, 0 insertions, 0 deletions