]> asedeno.scripts.mit.edu Git - linux.git/commit
crypto: cavium/zip - Add missing single_release()
authorWei Yongjun <weiyongjun1@huawei.com>
Wed, 4 Sep 2019 14:18:09 +0000 (14:18 +0000)
committerHerbert Xu <herbert@gondor.apana.org.au>
Mon, 9 Sep 2019 13:48:41 +0000 (23:48 +1000)
commitc552ffb5c93d9d65aaf34f5f001c4e7e8484ced1
tree56257d1980ce3cb0909267814bbc92544052ea50
parent18a0bb4aca81839578fef79c9bdef6710ed1c4dc
crypto: cavium/zip - Add missing single_release()

When using single_open() for opening, single_release() should be
used instead of seq_release(), otherwise there is a memory leak.

Fixes: 09ae5d37e093 ("crypto: zip - Add Compression/Decompression statistics")
Cc: <stable@vger.kernel.org>
Signed-off-by: Wei Yongjun <weiyongjun1@huawei.com>
Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
drivers/crypto/cavium/zip/zip_main.c