Code Review
/
kvmfornfv.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
review
|
tree
raw
| inline |
side by side
These changes are the raw update to linux-4.4.6-rt14. Kernel sources
[kvmfornfv.git]
/
kernel
/
security
/
integrity
/
iint.c
diff --git
a/kernel/security/integrity/iint.c
b/kernel/security/integrity/iint.c
index
dbb6d14
..
3d2f5b4
100644
(file)
--- a/
kernel/security/integrity/iint.c
+++ b/
kernel/security/integrity/iint.c
@@
-213,6
+213,9
@@
int __init integrity_read_file(const char *path, char **data)
char *buf;
int rc = -EINVAL;
+ if (!path || !*path)
+ return -EINVAL;
+
file = filp_open(path, O_RDONLY, 0);
if (IS_ERR(file)) {
rc = PTR_ERR(file);