diff options
Diffstat (limited to 'security/security.c')
-rw-r--r-- | security/security.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/security/security.c b/security/security.c index 68f46d849abe..235b35f58a65 100644 --- a/security/security.c +++ b/security/security.c | |||
@@ -970,11 +970,11 @@ int security_file_receive(struct file *file) | |||
970 | return call_int_hook(file_receive, 0, file); | 970 | return call_int_hook(file_receive, 0, file); |
971 | } | 971 | } |
972 | 972 | ||
973 | int security_file_open(struct file *file, const struct cred *cred) | 973 | int security_file_open(struct file *file) |
974 | { | 974 | { |
975 | int ret; | 975 | int ret; |
976 | 976 | ||
977 | ret = call_int_hook(file_open, 0, file, cred); | 977 | ret = call_int_hook(file_open, 0, file, file->f_cred); |
978 | if (ret) | 978 | if (ret) |
979 | return ret; | 979 | return ret; |
980 | 980 | ||