projects
/
openwrt
/
staging
/
blogic.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
50271d3
)
ipmi: get rid of pointless access_ok()
author
Al Viro
<viro@zeniv.linux.org.uk>
Sat, 30 Sep 2017 00:42:14 +0000
(20:42 -0400)
committer
Al Viro
<viro@zeniv.linux.org.uk>
Fri, 10 Nov 2017 13:48:42 +0000
(08:48 -0500)
Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
drivers/char/ipmi/bt-bmc.c
patch
|
blob
|
history
diff --git
a/drivers/char/ipmi/bt-bmc.c
b/drivers/char/ipmi/bt-bmc.c
index 70d434bc1cbf450e70e43e610a3c2535c97db860..c4ef73c6f45538bc014a98492e2d077cd0c356d5 100644
(file)
--- a/
drivers/char/ipmi/bt-bmc.c
+++ b/
drivers/char/ipmi/bt-bmc.c
@@
-204,9
+204,6
@@
static ssize_t bt_bmc_read(struct file *file, char __user *buf,
ssize_t ret = 0;
ssize_t nread;
- if (!access_ok(VERIFY_WRITE, buf, count))
- return -EFAULT;
-
WARN_ON(*ppos);
if (wait_event_interruptible(bt_bmc->queue,
@@
-277,9
+274,6
@@
static ssize_t bt_bmc_write(struct file *file, const char __user *buf,
if (count < 5)
return -EINVAL;
- if (!access_ok(VERIFY_READ, buf, count))
- return -EFAULT;
-
WARN_ON(*ppos);
/*