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
batman-adv: iv_ogm, fix comment function name
[firefly-linux-kernel-4.4.55.git]
/
fs
/
coredump.c
diff --git
a/fs/coredump.c
b/fs/coredump.c
index f319926ddf8cbc5cc90a003628bf500701ce3c25..bbbe139ab28020244f62011f44869d1529cd4b05 100644
(file)
--- a/
fs/coredump.c
+++ b/
fs/coredump.c
@@
-657,7
+657,7
@@
void do_coredump(const siginfo_t *siginfo)
*/
if (!uid_eq(inode->i_uid, current_fsuid()))
goto close_fail;
- if (!
cprm.file->f_op->write
)
+ if (!
(cprm.file->f_mode & FMODE_CAN_WRITE)
)
goto close_fail;
if (do_truncate(cprm.file->f_path.dentry, 0, 0, cprm.file))
goto close_fail;