Re: [PATCH] ACPI: disable stray gpe correctly

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



applied.

thanks,
-Len

On Sunday 09 March 2008, Zhang, Rui wrote:
> Disable stray GPE correctly
> https://bugzilla.redhat.com/show_bug.cgi?id=251744
> http://bugzilla.kernel.org/show_bug.cgi?id=6217
> 
> Sighed-off-by: Zhang Rui <rui.zhang@xxxxxxxxx>
> ---
>  drivers/acpi/events/evgpe.c |    3 ++-
>  1 file changed, 2 insertions(+), 1 deletion(-)
> 
> Index: linux-2.6/drivers/acpi/events/evgpe.c
> ===================================================================
> --- linux-2.6.orig/drivers/acpi/events/evgpe.c
> +++ linux-2.6/drivers/acpi/events/evgpe.c
> @@ -248,7 +248,8 @@ acpi_status acpi_ev_disable_gpe(struct a
>  
>  	ACPI_FUNCTION_TRACE(ev_disable_gpe);
>  
> -	if (!(gpe_event_info->flags & ACPI_GPE_ENABLE_MASK)) {
> +	if (gpe_event_info->flags &&
> +		(!(gpe_event_info->flags & ACPI_GPE_ENABLE_MASK))) {
>  		return_ACPI_STATUS(AE_OK);
>  	}
>  
> 
> 
> --
> To unsubscribe from this list: send the line "unsubscribe linux-acpi" in
> the body of a message to majordomo@xxxxxxxxxxxxxxx
> More majordomo info at  http://vger.kernel.org/majordomo-info.html
> 


--
To unsubscribe from this list: send the line "unsubscribe linux-acpi" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html

[Index of Archives]     [Linux IBM ACPI]     [Linux Power Management]     [Linux Kernel]     [Linux Laptop]     [Kernel Newbies]     [Share Photos]     [Security]     [Netfilter]     [Bugtraq]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Samba]     [Video 4 Linux]     [Device Mapper]     [Linux Resources]

  Powered by Linux