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);
 }
_______________________________________________
svn-src-head@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/svn-src-head
To unsubscribe, send any mail to "svn-src-head-unsubscr...@freebsd.org"

Reply via email to