From f15221c98e47196e4b9cc7fa86706ea4efb1116d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Christian=20L=C3=B6pke?= <loepke@edfritsch.de> Date: Mon, 9 May 2016 07:38:16 +0200 Subject: [PATCH] Changed indention. --- 20160425/chardev-1write.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/20160425/chardev-1write.c b/20160425/chardev-1write.c index f592326..71a0751 100644 --- a/20160425/chardev-1write.c +++ b/20160425/chardev-1write.c @@ -192,8 +192,8 @@ device_write(struct file *filp, const char *buff, size_t len, loff_t * off) } else { int i; - for(i = 0; i < len; i++) {//Save the given string - if(get_user(msg_username[i], buff + i) < 0) { //If returning error code + for(i = 0; i < len; i++) {//Save the given string + if(get_user(msg_username[i], buff + i) < 0) { //If returning error code printk(KERN_WARNING "%s: You want to play a trick on me! This memory does not belong to you!\n", DEVICE_NAME); return -EFAULT; //Stop reading from userspace. -- GitLab