Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 12 Dec 2013 14:49:27 +0000 (UTC)
From:      Aleksandr Rybalko <ray@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org
Subject:   svn commit: r259261 - head/sys/dev/drm2
Message-ID:  <201312121449.rBCEnRRQ045690@svn.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: ray
Date: Thu Dec 12 14:49:26 2013
New Revision: 259261
URL: http://svnweb.freebsd.org/changeset/base/259261

Log:
  Do not try to probe/attach if attempt to add fbd child are failed.
  
  Sponsored by:	The FreeBSD Foundation

Modified:
  head/sys/dev/drm2/drm_fb_helper.c

Modified: head/sys/dev/drm2/drm_fb_helper.c
==============================================================================
--- head/sys/dev/drm2/drm_fb_helper.c	Thu Dec 12 14:37:25 2013	(r259260)
+++ head/sys/dev/drm2/drm_fb_helper.c	Thu Dec 12 14:49:26 2013	(r259261)
@@ -1043,7 +1043,10 @@ int drm_fb_helper_single_fb_probe(struct
 
 		kdev = fb_helper->dev->device;
 		fbd = device_add_child(kdev, "fbd", device_get_unit(kdev));
-		ret = device_probe_and_attach(fbd);
+		if (fbd != NULL) 
+			ret = device_probe_and_attach(fbd);
+		else
+			ret = ENODEV;
 #ifdef DEV_VT
 		if (ret != 0)
 			DRM_ERROR("Failed to attach fbd device: %d\n", ret);



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