crypto: nx - Fix RCU warning in nx842_OF_upd_status
authorHerbert Xu <herbert@gondor.apana.org.au>
Thu, 17 Jun 2021 07:57:12 +0000 (15:57 +0800)
committerHerbert Xu <herbert@gondor.apana.org.au>
Thu, 24 Jun 2021 06:51:35 +0000 (14:51 +0800)
commit2a96726bd0ccde4f12b9b9a9f61f7b1ac5af7e10
tree36dda33a143e73e719f7c884d36b6af4741e9cbe
parent5163ab505e489400b4738b2a5547ec83d2dff7bb
crypto: nx - Fix RCU warning in nx842_OF_upd_status

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: 90fd73f912f0 ("crypto: nx - remove pSeries NX 'status' field")
Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
drivers/crypto/nx/nx-842-pseries.c