projects
/
linux-2.6-block.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
MIPS: smp-cps: Clear Status IPL field when using EIC
[linux-2.6-block.git]
/
kernel
/
acct.c
diff --git
a/kernel/acct.c
b/kernel/acct.c
index e6c10d1a405821d55b7595a2cd5e3404766d3d42..74963d192c5d96ce3674f0adbf554c95af4867ec 100644
(file)
--- a/
kernel/acct.c
+++ b/
kernel/acct.c
@@
-213,7
+213,7
@@
static int acct_on(struct filename *pathname)
return -EACCES;
}
- if (!
file->f_op->write
) {
+ if (!
(file->f_mode & FMODE_CAN_WRITE)
) {
kfree(acct);
filp_close(file, NULL);
return -EIO;