diff options
author | Colin Ian King <colin.king@canonical.com> | 2018-03-27 14:26:01 +0100 |
---|---|---|
committer | Tejun Heo <tj@kernel.org> | 2018-03-27 06:56:02 -0700 |
commit | dafd6c496381c1cd1f5ba9ad953e810bdcc931bc (patch) | |
tree | 639daf250f821153d2e2c6d65240ea9bb68b838c /security/selinux/hooks.c | |
parent | f0f56716fc3e5d547fd7811eb218a30ed0695605 (diff) | |
download | linux-dafd6c496381c1cd1f5ba9ad953e810bdcc931bc.tar.gz linux-dafd6c496381c1cd1f5ba9ad953e810bdcc931bc.tar.xz |
libata: ensure host is free'd on error exit paths
The host structure is not being kfree'd on two error exit paths
leading to memory leaks. Add in new err_free label and kfree host.
Detected by CoverityScan, CID#1466103 ("Resource leak")
Fixes: 2623c7a5f279 ("libata: add refcounting to ata_host")
Signed-off-by: Colin Ian King <colin.king@canonical.com>
Signed-off-by: Tejun Heo <tj@kernel.org>
Diffstat (limited to 'security/selinux/hooks.c')
0 files changed, 0 insertions, 0 deletions