From 24219d21c75f188d9e25053b0da22f2d698ca688 Mon Sep 17 00:00:00 2001 From: Al Viro Date: Fri, 29 Sep 2017 20:42:14 -0400 Subject: ipmi: get rid of pointless access_ok() Signed-off-by: Al Viro --- drivers/char/ipmi/bt-bmc.c | 6 ------ 1 file changed, 6 deletions(-) (limited to 'drivers/char/ipmi') diff --git a/drivers/char/ipmi/bt-bmc.c b/drivers/char/ipmi/bt-bmc.c index 70d434bc1cbf..c4ef73c6f455 100644 --- 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); /* -- cgit v1.2.3-58-ga151