android_kernel_oneplus_msm8998/drivers/crypto/amcc
Christian Lamparter 517340a7ef crypto: crypto4xx - fix crypto4xx_build_pdr, crypto4xx_build_sdr leak
commit 5d59ad6eea82ef8df92b4109615a0dde9d8093e9 upstream.

If one of the later memory allocations in rypto4xx_build_pdr()
fails: dev->pdr (and/or) dev->pdr_uinfo wouldn't be freed.

crypto4xx_build_sdr() has the same issue with dev->sdr.

Signed-off-by: Christian Lamparter <chunkeey@googlemail.com>
Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
Signed-off-by: Amit Pundir <amit.pundir@linaro.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
2018-07-22 14:25:52 +02:00
..
crypto4xx_alg.c crypto: crypto4xx - Staticize local symbols 2013-08-14 20:42:03 +10:00
crypto4xx_core.c crypto: crypto4xx - fix crypto4xx_build_pdr, crypto4xx_build_sdr leak 2018-07-22 14:25:52 +02:00
crypto4xx_core.h crypto: crypto4xx - increase context and scatter ring buffer elements 2017-12-25 14:22:14 +01:00
crypto4xx_reg_def.h fix typos concerning "initiali[zs]e" 2010-06-16 18:05:05 +02:00
crypto4xx_sa.c crypto: amcc - Remove unused function 2015-01-05 21:36:07 +11:00
crypto4xx_sa.h Fix common misspellings 2011-03-31 11:26:23 -03:00
Makefile crypto: Makefile - replace the use of <module>-objs with <module>-y 2010-10-19 20:52:26 +08:00