git.openpandora.org
/
pandora-kernel.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
pandora: defconfig: update
[pandora-kernel.git]
/
block
/
bsg.c
diff --git
a/block/bsg.c
b/block/bsg.c
index
c0ab25c
..
2a01940
100644
(file)
--- a/
block/bsg.c
+++ b/
block/bsg.c
@@
-675,6
+675,9
@@
bsg_write(struct file *file, const char __user *buf, size_t count, loff_t *ppos)
dprintk("%s: write %Zd bytes\n", bd->name, count);
+ if (unlikely(segment_eq(get_fs(), KERNEL_DS)))
+ return -EINVAL;
+
bsg_set_block(bd, file);
bytes_written = 0;