The sfb driver uses the device data, so more than a "struct device" is

needed.  When sfbattach() initializes the fbinfo data, it was corrupting
data past the struct device data actually allocated.  This does not appear
to have caused a problem in the past, but causes a problem with the new
setroot() changes by Jason.
This commit is contained in:
mhitch 1997-01-22 17:27:54 +00:00
parent 7e68ce85de
commit 4fe9d4efee
1 changed files with 2 additions and 2 deletions

View File

@ -1,4 +1,4 @@
/* $NetBSD: sfb.c,v 1.18 1996/10/13 13:14:01 jonathan Exp $ */ /* $NetBSD: sfb.c,v 1.19 1997/01/22 17:27:54 mhitch Exp $ */
/*- /*-
* Copyright (c) 1992, 1993 * Copyright (c) 1992, 1993
@ -131,7 +131,7 @@ void sfbattach __P((struct device *, struct device *, void *));
int sfb_intr __P((void *sc)); int sfb_intr __P((void *sc));
struct cfattach sfb_ca = { struct cfattach sfb_ca = {
sizeof(struct device), sfbmatch, sfbattach sizeof(struct fbinfo), sfbmatch, sfbattach
}; };
struct cfdriver sfb_cd = { struct cfdriver sfb_cd = {