diff options
author | Christian Lamparter <chunkeey@gmail.com> | 2019-10-31 17:14:38 +0100 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2019-12-13 08:52:46 +0100 |
commit | 0d51b4d823a9c89d49c52b61e28d3365bbd50c0b (patch) | |
tree | 671a42767b1edb3bfe20ec2382399470f18ecf00 /fs | |
parent | 5cbc7ff56097659c5e41e884cff34731ea03e23a (diff) | |
download | linux-stable-0d51b4d823a9c89d49c52b61e28d3365bbd50c0b.tar.gz linux-stable-0d51b4d823a9c89d49c52b61e28d3365bbd50c0b.tar.bz2 linux-stable-0d51b4d823a9c89d49c52b61e28d3365bbd50c0b.zip |
crypto: crypto4xx - fix double-free in crypto4xx_destroy_sdr
commit 746c908c4d72e49068ab216c3926d2720d71a90d upstream.
This patch fixes a crash that can happen during probe
when the available dma memory is not enough (this can
happen if the crypto4xx is built as a module).
The descriptor window mapping would end up being free'd
twice, once in crypto4xx_build_pdr() and the second time
in crypto4xx_destroy_sdr().
Fixes: 5d59ad6eea82 ("crypto: crypto4xx - fix crypto4xx_build_pdr, crypto4xx_build_sdr leak")
Cc: <stable@vger.kernel.org>
Signed-off-by: Christian Lamparter <chunkeey@gmail.com>
Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'fs')
0 files changed, 0 insertions, 0 deletions