Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 361857
b: refs/heads/master
c: 3e84f48
h: refs/heads/master
i:
  361855: e1ed650
v: v3
  • Loading branch information
Al Viro authored and Linus Torvalds committed Mar 27, 2013
1 parent 68959a1 commit 043e2ee
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: de55eb1d60d2ed0f1ba5e13226d91b3bfbe1c108
refs/heads/master: 3e84f48edfd33b2e209a117c11fb9ce637cc9b67
3 changes: 3 additions & 0 deletions trunk/fs/read_write.c
Original file line number Diff line number Diff line change
Expand Up @@ -424,6 +424,9 @@ ssize_t __kernel_write(struct file *file, const char *buf, size_t count, loff_t
const char __user *p;
ssize_t ret;

if (!file->f_op || (!file->f_op->write && !file->f_op->aio_write))
return -EINVAL;

old_fs = get_fs();
set_fs(get_ds());
p = (__force const char __user *)buf;
Expand Down

0 comments on commit 043e2ee

Please sign in to comment.