Subject: kern/828: small error in src/sys/dev/isa/wd.c
To: None <gnats-admin@NetBSD.ORG>
From: Chuck Cranor <chuck@yikes.ccrc.wustl.edu>
List: netbsd-bugs
Date: 02/26/1995 15:05:07
>Number:         828
>Category:       kern
>Synopsis:       small error in src/sys/dev/isa/wd.c
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    kern-bug-people (Kernel Bug People)
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Sun Feb 26 15:05:06 1995
>Originator:     Chuck Cranor
>Organization:
Washington University
>Release:        NetBSD-current 26-Feb-95
>Environment:
NetBSD 
>Description:
wd.c's wdccd cfdriver takes sizeof wrong data structure.
	(not a major problem since sizeof(wd_softc) > sizeof(wdc_softc))
>How-To-Repeat:
n/a
>Fix:

*** wd.c_ORIG	Sun Feb 26 16:51:39 1995
--- wd.c	Sun Feb 26 16:52:10 1995
***************
*** 170,176 ****
  void wdcattach __P((struct device *, struct device *, void *));
  
  struct cfdriver wdccd = {
! 	NULL, "wdc", wdcprobe, wdcattach, DV_DULL, sizeof(struct wd_softc)
  };
  
  int wdprobe __P((struct device *, void *, void *));
--- 170,176 ----
  void wdcattach __P((struct device *, struct device *, void *));
  
  struct cfdriver wdccd = {
! 	NULL, "wdc", wdcprobe, wdcattach, DV_DULL, sizeof(struct wdc_softc)
  };
  
  int wdprobe __P((struct device *, void *, void *));


>Audit-Trail:
>Unformatted: