svn commit: r278296 - head/sys/kern
John Baldwin
jhb at FreeBSD.org
Thu Feb 5 22:24:23 UTC 2015
Author: jhb
Date: Thu Feb 5 22:24:22 2015
New Revision: 278296
URL: https://svnweb.freebsd.org/changeset/base/278296
Log:
Set and clear the DF_SUSPENDED flag on the child device being manipulated
rather than on the parent.
Modified:
head/sys/kern/subr_bus.c
Modified: head/sys/kern/subr_bus.c
==============================================================================
--- head/sys/kern/subr_bus.c Thu Feb 5 22:03:12 2015 (r278295)
+++ head/sys/kern/subr_bus.c Thu Feb 5 22:24:22 2015 (r278296)
@@ -3653,7 +3653,7 @@ bus_generic_suspend_child(device_t dev,
error = DEVICE_SUSPEND(child);
if (error == 0)
- dev->flags |= DF_SUSPENDED;
+ child->flags |= DF_SUSPENDED;
return (error);
}
@@ -3668,7 +3668,7 @@ bus_generic_resume_child(device_t dev, d
{
DEVICE_RESUME(child);
- dev->flags &= ~DF_SUSPENDED;
+ child->flags &= ~DF_SUSPENDED;
return (0);
}
More information about the svn-src-head
mailing list