Skip to content
Closed
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 @@ -161,7 +166,7 @@ static char *parse_acpi_args(char *input, int *nargs, union acpi_object **args)
// if no space is found, return 0 arguments
if (*s == 0)
return input;

Ggg
*args = (union acpi_object *) kmalloc(MAX_ACPI_ARGS * sizeof(union acpi_object), GFP_KERNEL);

while (*s) {
Expand Down