crypto: brcm - Avoid double free in ahash_finup()
authorRob Rice <rob.rice@broadcom.com>
Tue, 14 Feb 2017 17:45:52 +0000 (12:45 -0500)
committerHerbert Xu <herbert@gondor.apana.org.au>
Wed, 15 Feb 2017 05:23:51 +0000 (13:23 +0800)
commitdcd36c436c9c1c5052be6bc2a9200e4e6dfbd267
tree861d2a7706f6111930623c69fa47ce87f70dbac1
parenteafa26696a648f974942e12f42460abff80a646d
crypto: brcm - Avoid double free in ahash_finup()

In Broadcom SPU driver, in case where incremental hash
is done in software in ahash_finup(), tmpbuf was freed
twice.

Reported-by: Dan Carpenter <dan.carpenter@oracle.com>
Signed-off-by: Rob Rice <rob.rice@broadcom.com>
Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
drivers/crypto/bcm/cipher.c