Message ID | 201007202219.o6KMJlaI021057@imap1.linux-foundation.org (mailing list archive) |
---|---|
State | New, archived |
Headers | show |
diff -puN drivers/platform/x86/asus-laptop.c~asus-laptop-fix-incorrect-return-value-for-write_acpi_int_ret-if-handle-is-null drivers/platform/x86/asus-laptop.c --- a/drivers/platform/x86/asus-laptop.c~asus-laptop-fix-incorrect-return-value-for-write_acpi_int_ret-if-handle-is-null +++ a/drivers/platform/x86/asus-laptop.c @@ -297,7 +297,7 @@ static int write_acpi_int_ret(acpi_handl acpi_status status; if (!handle) - return 0; + return -1; params.count = 1; params.pointer = &in_obj;