diff options
author | Cristian Stoica <cristian.stoica@freescale.com> | 2014-09-23 10:17:42 (GMT) |
---|---|---|
committer | Matthew Weigel <Matthew.Weigel@freescale.com> | 2014-12-11 18:41:05 (GMT) |
commit | 2b79116058767a16442d3571505f151fe2df7280 (patch) | |
tree | 1ae3d18aa7bd74a514bf967f31c91ec013e8e374 /drivers/block | |
parent | 8881364ff1250c0c878431ff3a2f4118ecf20118 (diff) | |
download | linux-fsl-qoriq-2b79116058767a16442d3571505f151fe2df7280.tar.xz |
crypto: caamhash: fix jr alloc leak on error path
Memory allocated for ctx->jrdev is freed in all error paths except when
ahash_set_sh_desc(ahash) fails. Add a check for this case and free
memory as appropriate.
Signed-off-by: Cristian Stoica <cristian.stoica@freescale.com>
Change-Id: I1c4e45a8cfdc6d24d768e90a148bb398b3d09f52
Reviewed-on: http://git.am.freescale.net:8181/19803
Tested-by: Review Code-CDREVIEW <CDREVIEW@freescale.com>
Reviewed-by: Horia Ioan Geanta Neag <horia.geanta@freescale.com>
Reviewed-by: Mircea Pop <mircea.pop@freescale.com>
Reviewed-by: Matthew Weigel <Matthew.Weigel@freescale.com>
Diffstat (limited to 'drivers/block')
0 files changed, 0 insertions, 0 deletions