crypto: cavium/nitrox - Use after free in process_response_list()
authorDan Carpenter <dan.carpenter@oracle.com>
Fri, 4 Jan 2019 06:46:11 +0000 (09:46 +0300)
committerHerbert Xu <herbert@gondor.apana.org.au>
Thu, 10 Jan 2019 13:37:31 +0000 (21:37 +0800)
commit06bbf753476dab23eb262cb5fbab6d6d277a0ba3
tree7e65ade381ed83f80504c8ee4941da7396215b1b
parenta7773363624b034ab198c738661253d20a8055c2
crypto: cavium/nitrox - Use after free in process_response_list()

We free "sr" and then dereference it on the next line.

Fixes: c9613335bf4f ("crypto: cavium/nitrox - Added AEAD cipher support")
Signed-off-by: Dan Carpenter <dan.carpenter@oracle.com>
Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
drivers/crypto/cavium/nitrox/nitrox_reqmgr.c