projects
/
deliverable
/
linux.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
ASoC: adau1977: Replace direct snd_soc_codec dapm field access
[deliverable/linux.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;
This page took
0.026314 seconds
and
5
git commands to generate.