projects
/
firefly-linux-kernel-4.4.55.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
ima: use path names cache
[firefly-linux-kernel-4.4.55.git]
/
security
/
integrity
/
ima
/
ima_main.c
diff --git
a/security/integrity/ima/ima_main.c
b/security/integrity/ima/ima_main.c
index 72faf0b5b05c83295dffa3c0d33f150d81755478..eeee00dce72903d8b9e5b00d75588b10495bd8fc 100644
(file)
--- a/
security/integrity/ima/ima_main.c
+++ b/
security/integrity/ima/ima_main.c
@@
-246,7
+246,8
@@
out_digsig:
rc = -EACCES;
kfree(xattr_value);
out_free:
- kfree(pathbuf);
+ if (pathbuf)
+ __putname(pathbuf);
out:
mutex_unlock(&inode->i_mutex);
if ((rc && must_appraise) && (ima_appraise & IMA_APPRAISE_ENFORCE))