linux_dsm_epyc7002/drivers/crypto/nx
Herbert Xu 8d7debe744 crypto: nx - Fix RCU warning in nx842_OF_upd_status
[ Upstream commit 2a96726bd0ccde4f12b9b9a9f61f7b1ac5af7e10 ]

The function nx842_OF_upd_status triggers a sparse RCU warning when
it directly dereferences the RCU-protected devdata.  This appears
to be an accident as there was another variable of the same name
that was passed in from the caller.

After it was removed (because the main purpose of using it, to
update the status member was itself removed) the global variable
unintenionally stood in as its replacement.

This patch restores the devdata parameter.

Fixes: 90fd73f912 ("crypto: nx - remove pSeries NX 'status' field")
Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
Signed-off-by: Sasha Levin <sashal@kernel.org>
2021-07-14 16:56:10 +02:00
..
Kconfig treewide: Add SPDX license identifier - Makefile/Kconfig 2019-05-21 10:50:46 +02:00
Makefile crypto/nx: Rename nx-842-powernv file name to nx-common-powernv 2020-04-20 16:53:14 +10:00
nx_csbcpb.h License cleanup: add SPDX GPL-2.0 license identifier to files with no license 2017-11-02 11:10:55 +01:00
nx_debugfs.c crypto: nx - Improve debugfs_create_u{32,64}() handling for atomics 2019-10-26 02:09:59 +11:00
nx-842-pseries.c crypto: nx - Fix RCU warning in nx842_OF_upd_status 2021-07-14 16:56:10 +02:00
nx-842.c treewide: Replace GPLv2 boilerplate/reference with SPDX - rule 157 2019-05-30 11:26:37 -07:00
nx-842.h License cleanup: add SPDX GPL-2.0 license identifier to files with no license 2017-11-02 11:10:55 +01:00
nx-aes-cbc.c crypto: nx - convert AES-CBC to skcipher API 2019-10-23 19:46:59 +11:00
nx-aes-ccm.c crypto: nx - remove stale comment referring to the blkcipher walk API 2019-11-17 09:02:49 +08:00
nx-aes-ctr.c crypto: nx - Fix memcpy() over-reading in nonce 2021-07-14 16:55:39 +02:00
nx-aes-ecb.c crypto: nx - convert AES-ECB to skcipher API 2019-10-23 19:46:59 +11:00
nx-aes-gcm.c crypto: nx - remove stale comment referring to the blkcipher walk API 2019-11-17 09:02:49 +08:00
nx-aes-xcbc.c treewide: Replace GPLv2 boilerplate/reference with SPDX - rule 299 2019-06-05 17:36:59 +02:00
nx-common-powernv.c crypto/nx: Remove 'pid' in vas_tx_win_attr struct 2020-04-20 16:53:14 +10:00
nx-sha256.c treewide: Replace GPLv2 boilerplate/reference with SPDX - rule 299 2019-06-05 17:36:59 +02:00
nx-sha512.c treewide: Replace GPLv2 boilerplate/reference with SPDX - rule 299 2019-06-05 17:36:59 +02:00
nx.c mm, treewide: rename kzfree() to kfree_sensitive() 2020-08-07 11:33:22 -07:00
nx.h crypto: Replace zero-length array with flexible-array member 2020-03-06 12:28:21 +11:00