Author: cgutman
Date: Fri Oct 21 16:38:56 2011
New Revision: 54226
URL:
http://svn.reactos.org/svn/reactos?rev=54226&view=rev
Log:
[CMBATT]
- Fix a deadlock caused by forwarding IRPs to ourself
Modified:
trunk/reactos/drivers/bus/acpi/cmbatt/cmbpnp.c
Modified: trunk/reactos/drivers/bus/acpi/cmbatt/cmbpnp.c
URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/drivers/bus/acpi/cmbatt/cm…
==============================================================================
--- trunk/reactos/drivers/bus/acpi/cmbatt/cmbpnp.c [iso-8859-1] (original)
+++ trunk/reactos/drivers/bus/acpi/cmbatt/cmbpnp.c [iso-8859-1] Fri Oct 21 16:38:56 2011
@@ -303,7 +303,7 @@
TRUE);
/* Now call ACPI to inherit its PnP Device State */
- Status = IoCallDriver(DeviceObject, Irp);
+ Status = IoCallDriver(DeviceExtension->AttachedDevice, Irp);
if (Status == STATUS_PENDING)
{
/* Wait for completion */
@@ -443,7 +443,7 @@
TRUE);
/* Now call ACPI */
- Status = IoCallDriver(DeviceObject, Irp);
+ Status = IoCallDriver(DeviceExtension->AttachedDevice, Irp);
if (Status == STATUS_PENDING)
{
/* Wait for completion */