svn commit: r257546 - user/ed/newcons/sys/dev/fb
Aleksandr Rybalko
ray at FreeBSD.org
Sat Nov 2 14:05:20 UTC 2013
Author: ray
Date: Sat Nov 2 14:05:19 2013
New Revision: 257546
URL: http://svnweb.freebsd.org/changeset/base/257546
Log:
Fail to attach if fb_info not passed.
Sponsored by: The FreeBSD Foundation
Modified:
user/ed/newcons/sys/dev/fb/fbd.c
Modified: user/ed/newcons/sys/dev/fb/fbd.c
==============================================================================
--- user/ed/newcons/sys/dev/fb/fbd.c Sat Nov 2 13:16:00 2013 (r257545)
+++ user/ed/newcons/sys/dev/fb/fbd.c Sat Nov 2 14:05:19 2013 (r257546)
@@ -372,6 +372,8 @@ fbd_attach(device_t dev)
sc->sc_dev = dev;
sc->sc_info = FB_GETINFO(device_get_parent(dev));
+ if (sc->sc_info == NULL)
+ return (ENXIO);
err = fbd_register(sc->sc_info);
return (err);
More information about the svn-src-user
mailing list