public inbox for linux-acpi@vger.kernel.org
 help / color / mirror / Atom feed
* Possible problem in acpi_remove_address_space_handler
@ 2003-04-09 16:35 bperkins-ooduxAEi7gVg9hUCZPvPmw
  0 siblings, 0 replies; 2+ messages in thread
From: bperkins-ooduxAEi7gVg9hUCZPvPmw @ 2003-04-09 16:35 UTC (permalink / raw)
  To: acpi-devel-5NWGOfrQmneRv+LV9MX5uipxlwaOVQ5f; +Cc: ltong-r3+FECOBLOPAaqN1iTbosg

Is there any reason why 	

acpi_ut_remove_reference (handler_obj); 

is called twice in a row in acpi_remove_address_space_handler
events/evxfregn.c line 400 or so?


If it's a typo, then I think I found the thing causing the
AC_BAD_PARAMETER problem on my Thinkpad R32.  Maybe someone already
found this.


Here's my patch:


diff -u -r1.1.1.1 evxfregn.c
--- linux-2.5.66/drivers/acpi/events/evxfregn.c	2 Apr 2003 03:34:04 -0000	1.1.1.1
+++ linux-2.5.66/drivers/acpi/events/evxfregn.c	9 Apr 2003 16:18:25 -0000
@@ -391,7 +391,7 @@
 			/*
 			 * Now we can delete the handler object
 			 */
-			acpi_ut_remove_reference (handler_obj);
+
 			acpi_ut_remove_reference (handler_obj);
 
 			goto unlock_and_exit;



--
"Operation Shoot First" is a complete success!!!
Brian Perkins                bperkins-ooduxAEi7gVg9hUCZPvPmw@public.gmane.org 


-------------------------------------------------------
This SF.net email is sponsored by: Etnus, makers of TotalView, The debugger 
for complex code. Debugging C/C++ programs can leave you feeling lost and 
disoriented. TotalView can help you find your way. Available on major UNIX 
and Linux platforms. Try it free. www.etnus.com

^ permalink raw reply	[flat|nested] 2+ messages in thread
* RE: Possible problem in acpi_remove_address_space_handler
@ 2003-04-09 22:50 Moore, Robert
  0 siblings, 0 replies; 2+ messages in thread
From: Moore, Robert @ 2003-04-09 22:50 UTC (permalink / raw)
  To: 'bperkins-ooduxAEi7gVg9hUCZPvPmw@public.gmane.org',
	acpi-devel-5NWGOfrQmneRv+LV9MX5uipxlwaOVQ5f
  Cc: ltong-r3+FECOBLOPAaqN1iTbosg

This looks to be some leftover code from a previous implementation of the
address handlers.

This will be fixed in the next patch.

Bob


> -----Original Message-----
> From: bperkins-ooduxAEi7gVg9hUCZPvPmw@public.gmane.org [mailto:bperkins@netspace.org]
> Sent: Wednesday, April 09, 2003 9:36 AM
> To: acpi-devel-5NWGOfrQmneRv+LV9MX5uipxlwaOVQ5f@public.gmane.org
> Cc: ltong-r3+FECOBLOPAaqN1iTbosg@public.gmane.org
> Subject: [ACPI] Possible problem in acpi_remove_address_space_handler
> 
> Is there any reason why
> 
> acpi_ut_remove_reference (handler_obj);
> 
> is called twice in a row in acpi_remove_address_space_handler
> events/evxfregn.c line 400 or so?
> 
> 
> If it's a typo, then I think I found the thing causing the
> AC_BAD_PARAMETER problem on my Thinkpad R32.  Maybe someone already
> found this.
> 
> 
> Here's my patch:
> 
> 
> diff -u -r1.1.1.1 evxfregn.c
> --- linux-2.5.66/drivers/acpi/events/evxfregn.c	2 Apr 2003 03:34:04
-0000
> 	1.1.1.1
> +++ linux-2.5.66/drivers/acpi/events/evxfregn.c	9 Apr 2003 16:18:25
-0000
> @@ -391,7 +391,7 @@
>  			/*
>  			 * Now we can delete the handler object
>  			 */
> -			acpi_ut_remove_reference (handler_obj);
> +
>  			acpi_ut_remove_reference (handler_obj);
> 
>  			goto unlock_and_exit;
> 
> 
> 
> --
> "Operation Shoot First" is a complete success!!!
> Brian Perkins                bperkins-ooduxAEi7gVg9hUCZPvPmw@public.gmane.org
> 
> 
> -------------------------------------------------------
> This SF.net email is sponsored by: Etnus, makers of TotalView, The
> debugger
> for complex code. Debugging C/C++ programs can leave you feeling lost and
> disoriented. TotalView can help you find your way. Available on major UNIX
> and Linux platforms. Try it free. www.etnus.com
> _______________________________________________
> Acpi-devel mailing list
> Acpi-devel-5NWGOfrQmneRv+LV9MX5uipxlwaOVQ5f@public.gmane.org
> https://lists.sourceforge.net/lists/listinfo/acpi-devel


-------------------------------------------------------
This SF.net email is sponsored by: Etnus, makers of TotalView, The debugger 
for complex code. Debugging C/C++ programs can leave you feeling lost and 
disoriented. TotalView can help you find your way. Available on major UNIX 
and Linux platforms. Try it free. www.etnus.com

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2003-04-09 22:50 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2003-04-09 16:35 Possible problem in acpi_remove_address_space_handler bperkins-ooduxAEi7gVg9hUCZPvPmw
  -- strict thread matches above, loose matches on Subject: below --
2003-04-09 22:50 Moore, Robert

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox