提交 24219d21 编写于 作者: A Al Viro

ipmi: get rid of pointless access_ok()

Signed-off-by: NAl Viro <viro@zeniv.linux.org.uk>
上级 50271d38
...@@ -204,9 +204,6 @@ static ssize_t bt_bmc_read(struct file *file, char __user *buf, ...@@ -204,9 +204,6 @@ static ssize_t bt_bmc_read(struct file *file, char __user *buf,
ssize_t ret = 0; ssize_t ret = 0;
ssize_t nread; ssize_t nread;
if (!access_ok(VERIFY_WRITE, buf, count))
return -EFAULT;
WARN_ON(*ppos); WARN_ON(*ppos);
if (wait_event_interruptible(bt_bmc->queue, if (wait_event_interruptible(bt_bmc->queue,
...@@ -277,9 +274,6 @@ static ssize_t bt_bmc_write(struct file *file, const char __user *buf, ...@@ -277,9 +274,6 @@ static ssize_t bt_bmc_write(struct file *file, const char __user *buf,
if (count < 5) if (count < 5)
return -EINVAL; return -EINVAL;
if (!access_ok(VERIFY_READ, buf, count))
return -EFAULT;
WARN_ON(*ppos); WARN_ON(*ppos);
/* /*
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册