crypto: iaa - Adjust workqueue allocation type
authorKees Cook <kees@kernel.org>
Sat, 26 Apr 2025 06:11:31 +0000 (23:11 -0700)
committerHerbert Xu <herbert@gondor.apana.org.au>
Mon, 28 Apr 2025 11:45:26 +0000 (19:45 +0800)
commitdb4978d2f0559288a1595f82bda419fad216beed
tree4a62867f0fea65d64d1a1cf43da9b6423bfc2d59
parentb9580cf5f9ace0d64903164f553cbef674cefb46
crypto: iaa - Adjust workqueue allocation type

In preparation for making the kmalloc family of allocators type aware,
we need to make sure that the returned type from the allocation matches
the type of the variable being assigned. (Before, the allocator would
always return "void *", which can be implicitly cast to any pointer type.)

The assigned type is "struct idxd_wq **", but the returned type will be
"struct wq **". These are the same size allocation (pointer sized), but
the types don't match. Adjust the allocation type to match the assignment.

Signed-off-by: Kees Cook <kees@kernel.org>
Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
drivers/crypto/intel/iaa/iaa_crypto_main.c