]> www.infradead.org Git - users/jedix/linux-maple.git/commit
crypto: acomp - Fix synchronous acomp chaining fallback
authorHerbert Xu <herbert@gondor.apana.org.au>
Fri, 21 Mar 2025 08:43:32 +0000 (16:43 +0800)
committerHerbert Xu <herbert@gondor.apana.org.au>
Fri, 21 Mar 2025 23:25:19 +0000 (07:25 +0800)
commit39fc22a8e53e96392f9b2c840e386272affbe6ba
tree123620fcad948fb30bf36fbed57b264a617cafe6
parent8b54e6a8f4156ed43627f40300b0711dc977fbc1
crypto: acomp - Fix synchronous acomp chaining fallback

The synchronous acomp fallback code path is broken because the
completion code path assumes that the state object is always set
but this is only done for asynchronous algorithms.

First of all remove the assumption on the completion code path
by passing in req0 instead of the state.  However, also remove
the conditional setting of the state since it's always in the
request object anyway.

Fixes: b67a02600372 ("crypto: acomp - Add request chaining and virtual addresses")
Reported-by: Giovanni Cabiddu <giovanni.cabiddu@intel.com>
Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
crypto/acompress.c