]> git.baikalelectronics.ru Git - kernel.git/commit
ath11k: Build check size of ath11k_skb_cb
authorSven Eckelmann <sven@narfation.org>
Tue, 24 Nov 2020 15:59:16 +0000 (17:59 +0200)
committerKalle Valo <kvalo@codeaurora.org>
Wed, 2 Dec 2020 18:19:06 +0000 (20:19 +0200)
commit09be3724d9ae0db6e6e2dc4f4d4de0df7a97a2eb
treef026d536a49174e36354106372cdb5ed875a9d2a
parenteeecb7d799830851b9d2a106a4ff25ce30c97ac8
ath11k: Build check size of ath11k_skb_cb

It is rather easy to add more entries to ath11k_skb_cb while forgetting the
size limit of ieee80211_tx_info->driver_data. So just check this during the
build to reduce the change of accidental buffer overflow in the skbuff->cb.

Signed-off-by: Sven Eckelmann <sven@narfation.org>
Signed-off-by: Kalle Valo <kvalo@codeaurora.org>
Link: https://lore.kernel.org/r/20201119154235.263250-3-sven@narfation.org
drivers/net/wireless/ath/ath11k/core.h