Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 5 Feb 2015 22:24:22 +0000 (UTC)
From:      John Baldwin <jhb@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org
Subject:   svn commit: r278296 - head/sys/kern
Message-ID:  <201502052224.t15MOMCR086969@svn.freebsd.org>

next in thread | raw e-mail | index | archive | help
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);
 }



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201502052224.t15MOMCR086969>