Skip to content
Snippets Groups Projects
Commit f463479b authored by Christian Löpke's avatar Christian Löpke
Browse files

Fixed broken indention whitespace -> tab

parent f15221c9
No related branches found
No related tags found
No related merge requests found
Pipeline #
...@@ -194,11 +194,11 @@ device_write(struct file *filp, const char *buff, size_t len, loff_t * off) ...@@ -194,11 +194,11 @@ device_write(struct file *filp, const char *buff, size_t len, loff_t * off)
int i; int i;
for(i = 0; i < len; i++) {//Save the given string for(i = 0; i < len; i++) {//Save the given string
if(get_user(msg_username[i], buff + i) < 0) { //If returning error code 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", printk(KERN_WARNING
"%s: This memory does not belong to you!\n",
DEVICE_NAME); DEVICE_NAME);
return -EFAULT; //Stop reading from userspace. return -EFAULT; //Stop reading from userspace.
} }
//msg_username[i] = buff[i]; //Heres was the CRASH //msg_username[i] = buff[i]; //Heres was the CRASH
//printk(KERN_INFO "Got %c at %d from %d bytes.\n", buff[i], i, len); //printk(KERN_INFO "Got %c at %d from %d bytes.\n", buff[i], i, len);
} }
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment