lists.openwall.net   lists  /  announce  owl-users  owl-dev  john-users  john-dev  passwdqc-users  yescrypt  popa3d-users  /  oss-security  kernel-hardening  musl  sabotage  tlsify  passwords  /  crypt-dev  xvendor  /  Bugtraq  Full-Disclosure  linux-kernel  linux-netdev  linux-ext4  linux-hardening  linux-cve-announce  PHC 
Open Source and information security mailing list archives
 
Hash Suite: Windows password security audit tool. GUI, reports in PDF.
[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <s5h8t16jut7.wl-tiwai@suse.de>
Date:   Mon, 03 Dec 2018 20:04:36 +0100
From:   Takashi Iwai <tiwai@...e.de>
To:     "Ayman Bagabas" <ayman.bagabas@...il.com>
Cc:     <alsa-devel@...a-project.org>, "Hui Wang" <hui.wang@...onical.com>,
        "Andy Shevchenko" <andy@...radead.org>,
        "Darren Hart" <dvhart@...radead.org>,
        "Jaroslav Kysela" <perex@...ex.cz>,
        "Kailang Yang" <kailang@...ltek.com>,
        <linux-kernel@...r.kernel.org>,
        <platform-driver-x86@...r.kernel.org>
Subject: Re: [PATCH v9 2/3] x86: add support for Huawei WMI hotkeys.

On Mon, 03 Dec 2018 19:53:39 +0100,
Ayman Bagabas wrote:
> +	if (code == 0x80) {
> +		acpi_status status;
> +		acpi_handle handle;
> +		unsigned long long result;
> +		union acpi_object args[1];
> +		struct acpi_object_list arg_list = {
> +			.pointer = args,
> +			.count = ARRAY_SIZE(args),
> +		};
> +
> +		args[0].type = ACPI_TYPE_INTEGER;
> +		args[0].integer.value = 0;
> +
> +		status = acpi_get_handle(NULL, "\\WMI0", &handle);
> +		if (ACPI_FAILURE(status)) {
> +			dev_err(&wdev->dev, "Unable to get ACPI handle\n");
> +			return;
> +		}
> +
> +		status = acpi_evaluate_integer(NULL, "WQ00", &arg_list, &result);

I guess you need to pass handle here?  In the earlier version, you
passed \\WMI0.WQ00, so it worked with NULL handle.  But now it's no
longer so...

Other than that, it looks OK to me.
  Reviewed-by: Takashi Iwai <tiwai@...e.de>

But, you don't need to rush too much.  Instead, better to test your
own patches and make sure that they really work before submitting the
final version.


thanks,

Takashi

Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ