]> www.infradead.org Git - users/jedix/linux-maple.git/commit
staging: rtl8192e: Constify struct lib80211_crypto_ops
authorChristophe JAILLET <christophe.jaillet@wanadoo.fr>
Mon, 5 Aug 2024 06:40:39 +0000 (08:40 +0200)
committerJohannes Berg <johannes.berg@intel.com>
Tue, 27 Aug 2024 08:28:53 +0000 (10:28 +0200)
commit6a1a6f2dba35cfb5f81100c375a0c87eda90f2c7
treed74b999739e2e2f3c50c8ff6ca46f9859caae1a0
parent1842442007cded42decd8c27ce84cfc570b8f5f4
staging: rtl8192e: Constify struct lib80211_crypto_ops

Now that functions in lib80211 handle "const struct lib80211_crypto_ops",
some structure can be constified as well.

Constifying these structures moves some data to a read-only section, so
increase overall security.

Signed-off-by: Christophe JAILLET <christophe.jaillet@wanadoo.fr>
Reviewed-by: Simon Horman <horms@kernel.org>
Tested-by: Philipp Hortmann <philipp.g.hortmann@gmail.com>
Acked-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Link: https://patch.msgid.link/dfda6343781ae3d50cd2ec7bbdcf76a489b6922a.1722839425.git.christophe.jaillet@wanadoo.fr
Signed-off-by: Johannes Berg <johannes.berg@intel.com>
drivers/staging/rtl8192e/rtllib_crypt_ccmp.c
drivers/staging/rtl8192e/rtllib_crypt_tkip.c
drivers/staging/rtl8192e/rtllib_crypt_wep.c