summaryrefslogtreecommitdiffstats
path: root/drivers/char/mem.c
diff options
context:
space:
mode:
authorRob Ward <robert.ward114@googlemail.com>2014-12-20 18:28:36 +0000
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2015-01-12 05:04:11 -0800
commit6a0061badd2e894edb5a3a5d7704095766a343fd (patch)
tree47da6d07cedf5bb1827bbd7132b085e258906f87 /drivers/char/mem.c
parent35b6c7e4a536f9a6110023431533b738650d6457 (diff)
downloadlinux-6a0061badd2e894edb5a3a5d7704095766a343fd.tar.bz2
drivers: char: mem: Fix Missing blank line issues
Fixes "Missing a blank line after declarations" reported by checkpatch. This patch introduces no functional changes. Signed-off-by: Rob Ward <robert.ward114@googlemail.com> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'drivers/char/mem.c')
-rw-r--r--drivers/char/mem.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/drivers/char/mem.c b/drivers/char/mem.c
index da73aeaa7008..080273287c48 100644
--- a/drivers/char/mem.c
+++ b/drivers/char/mem.c
@@ -570,6 +570,7 @@ static ssize_t write_port(struct file *file, const char __user *buf,
return -EFAULT;
while (count-- > 0 && i < 65536) {
char c;
+
if (__get_user(c, tmp)) {
if (tmp > buf)
break;
@@ -625,6 +626,7 @@ static ssize_t read_iter_zero(struct kiocb *iocb, struct iov_iter *iter)
while (iov_iter_count(iter)) {
size_t chunk = iov_iter_count(iter), n;
+
if (chunk > PAGE_SIZE)
chunk = PAGE_SIZE; /* Just for latency reasons */
n = iov_iter_zero(chunk, iter);