aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/staging/rtl8188eu
diff options
context:
space:
mode:
authorGilad Ben-Yossef <gilad@benyossef.com>2017-11-09 09:16:09 +0000
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2017-11-28 14:36:45 +0100
commitc5f39d07860c35e5e4c63188139465af790f86ce (patch)
tree1c7110deb64e6cb990154ecba93a217614269b05 /drivers/staging/rtl8188eu
parentstaging: comedi: ni_atmio: fix license warning. (diff)
downloadlinux-dev-c5f39d07860c35e5e4c63188139465af790f86ce.tar.xz
linux-dev-c5f39d07860c35e5e4c63188139465af790f86ce.zip
staging: ccree: fix leak of import() after init()
crypto_ahash_import() may be called either after crypto_ahash_init() or without such call. Right now we always internally call init() as part of import(), thus leaking memory and mappings if the user has already called init() herself. Fix this by only calling init() internally if the state is not already initialized. Fixes: commit 454527d0d94f ("staging: ccree: fix hash import/export") Cc: stable <stable@vger.kernel.org> Signed-off-by: Gilad Ben-Yossef <gilad@benyossef.com> Reviewed-by: Dan Carpenter <dan.carpenter@oracle.com> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'drivers/staging/rtl8188eu')
0 files changed, 0 insertions, 0 deletions