diff options
author | Eric Richter <erichte@linux.vnet.ibm.com> | 2016-10-13 17:47:36 -0500 |
---|---|---|
committer | Mimi Zohar <zohar@linux.vnet.ibm.com> | 2016-11-13 22:50:08 -0500 |
commit | 9a11a18902bc3b904353063763d06480620245a6 (patch) | |
tree | 1884e4b68697ca188f95cb98e0babb6f27def6a5 /drivers/isdn | |
parent | 185c0f26c0267d5978b5c30d3a04f90cb245cd76 (diff) | |
download | linux-9a11a18902bc3b904353063763d06480620245a6.tar.bz2 |
ima: fix memory leak in ima_release_policy
When the "policy" securityfs file is opened for read, it is opened as a
sequential file. However, when it is eventually released, there is no
cleanup for the sequential file, therefore some memory is leaked.
This patch adds a call to seq_release() in ima_release_policy() to clean up
the memory when the file is opened for read.
Fixes: 80eae209d63a IMA: allow reading back the current policy
Reported-by: Colin Ian King <colin.king@canonical.com>
Signed-off-by: Eric Richter <erichte@linux.vnet.ibm.com>
Tested-by: Colin Ian King <colin.king@canonical.com>
Signed-off-by: Mimi Zohar <zohar@linux.vnet.ibm.com>
Diffstat (limited to 'drivers/isdn')
0 files changed, 0 insertions, 0 deletions