Skip to content

Commit

Permalink
ima: free securityfs violations file
Browse files Browse the repository at this point in the history
On ima_fs_init() error, free securityfs violations file.

Signed-off-by: Dmitry Kasatkin <dmitry.kasatkin@intel.com>
Signed-off-by: Mimi Zohar <zohar@us.ibm.com>
  • Loading branch information
Dmitry Kasatkin authored and Mimi Zohar committed Jul 2, 2012
1 parent 08e1b76 commit 0ea4f8a
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions security/integrity/ima/ima_fs.c
Original file line number Diff line number Diff line change
Expand Up @@ -367,6 +367,7 @@ int __init ima_fs_init(void)

return 0;
out:
securityfs_remove(violations);
securityfs_remove(runtime_measurements_count);
securityfs_remove(ascii_runtime_measurements);
securityfs_remove(binary_runtime_measurements);
Expand Down

0 comments on commit 0ea4f8a

Please sign in to comment.