]> git.baikalelectronics.ru Git - kernel.git/commit
crypto: rng - Fix a refcounting bug in crypto_rng_reset()
authorDan Carpenter <dan.carpenter@oracle.com>
Mon, 20 Jan 2020 14:38:04 +0000 (17:38 +0300)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Fri, 17 Apr 2020 08:50:16 +0000 (10:50 +0200)
commited4535f97ccbc0108ca765e9f46f49416221bc73
treef0985dd2b6e43bb676712a61f8fd43c29d531170
parent2ae458b5830759e4a4f7adf87207ea807c4987aa
crypto: rng - Fix a refcounting bug in crypto_rng_reset()

commit b256a167ad3f422b83678540250fcd2ba9b13106 upstream.

We need to decrement this refcounter on these error paths.

Fixes: a6c724879223 ("crypto: user - fix use_after_free of struct xxx_request")
Cc: <stable@vger.kernel.org>
Signed-off-by: Dan Carpenter <dan.carpenter@oracle.com>
Acked-by: Neil Horman <nhorman@tuxdriver.com>
Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
crypto/rng.c