Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 7 additions & 2 deletions acpi_call.c
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,12 @@
#include <linux/proc_fs.h>
#include <linux/slab.h>
#include <asm/uaccess.h>
#include <acpi/acpi.h>

#if LINUX_VERSION_CODE >= KERNEL_VERSION(4, 0, 0)
#include <linux/acpi.h>
#else
#include <acpi/acpi.h>
#endif

MODULE_LICENSE("GPL");

Expand Down Expand Up @@ -274,7 +279,7 @@ static int acpi_proc_write( struct file *filp, const char __user *buff,
return -ENOSPC;
}

if (copy_from_user( input, buff, len )) {
if (raw_copy_from_user( input, buff, len )) {
return -EFAULT;
}
input[len] = '\0';
Expand Down