From 07a1398963dc7cf55d06e9130e3c283f1336bf8f Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Christian=20L=C3=B6pke?= <loepke@edfritsch.de>
Date: Sun, 8 May 2016 19:13:30 +0200
Subject: [PATCH] Marked crash line on archx64.

---
 20160425/chardev-1write.c | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)

diff --git a/20160425/chardev-1write.c b/20160425/chardev-1write.c
index 12cf5bb..9cd2373 100644
--- a/20160425/chardev-1write.c
+++ b/20160425/chardev-1write.c
@@ -193,11 +193,11 @@ 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
-			msg_username[i] = buff[i];
+			msg_username[i] = buff[i]; //Heres the CRASH
 		for(i = len; i < USERBUF_LEN; i++) //Zeroing the rest of mem
 			msg_username[i] = 0;
-		//printk(KERN_INFO "%s: Successfully got %d bytes!\n",
-		//       DEVICE_NAME, (int)len);
+		printk(KERN_INFO "%s: Successfully got %d bytes!\n",
+		       DEVICE_NAME, (int)len);
 		if(msg_username[len-1] == '\n') //Got new line terminator ?
 		  msg_username[len-1] = 0; //Then terminate it!
 		return len; //Emit successfully stored len bytes
-- 
GitLab