diff options
author | Colin Ian King <colin.king@canonical.com> | 2017-11-15 12:37:19 +0000 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2018-03-19 09:09:52 +0100 |
commit | 2067278ed4a1541fc5bc2923f37e8a5609fa6665 (patch) | |
tree | 8b027880025f5d32151e509f9b3d5c2dc8061425 /tools | |
parent | b58c90c3a2c15f4143f042a79b34df3276952e32 (diff) |
crypto: cavium - fix memory leak on info
[ Upstream commit 87aae50af730a28dc1d8846d86dca5e9aa724a9f ]
The object info is being leaked on an error return path, fix this
by setting ret to -ENOMEM and exiting via the request_cleanup path
that will free info.
Detected by CoverityScan, CID#1408439 ("Resource Leak")
Fixes: c694b233295b ("crypto: cavium - Add the Virtual Function driver for CPT")
Signed-off-by: Colin Ian King <colin.king@canonical.com>
Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
Signed-off-by: Sasha Levin <alexander.levin@microsoft.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'tools')
0 files changed, 0 insertions, 0 deletions