NetBSD Problem Report #828
From gnats Sun Feb 26 15:04:49 1995
Received: from pain.lcs.mit.edu (pain.lcs.mit.edu [128.52.46.239]) by sun-lamp.cs.berkeley.edu (8.6.10/8.6.10) with ESMTP id PAA06934 for <gnats-bugs@sun-lamp.cs.berkeley.edu>; Sun, 26 Feb 1995 15:04:48 -0800
Message-Id: <199502262307.RAA07948@yikes.ccrc.wustl.edu>
Date: Sun, 26 Feb 1995 17:07:14 -0600
From: Chuck Cranor <chuck@yikes.ccrc.wustl.edu>
Reply-To: chuck@yikes.ccrc.wustl.edu
To: gnats-bugs@NetBSD.ORG
Subject: small error in src/sys/dev/isa/wd.c
X-Send-Pr-Version: 3.2
>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
>State: closed
>Class: sw-bug
>Submitter-Id: net
>Arrival-Date: Sun Feb 26 15:05:06 +0000 1995
>Closed-Date: Mon Feb 27 01:07:11 +0000 1995
>Last-Modified:
>Originator: Chuck Cranor
>Release: NetBSD-current 26-Feb-95
>Organization:
Washington University
>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 *));
>Release-Note:
>Audit-Trail:
State-Changed-From-To: open->closed
State-Changed-By: cgd
State-Changed-When: Sun Feb 26 17:07:11 PST 1995
State-Changed-Why:
fixed, as suggested.
>Unformatted:
(Contact us)
$NetBSD: query-full-pr,v 1.51 2026/08/10 02:28:17 riastradh Exp $
$NetBSD: gnats_config.sh,v 1.10 2026/05/13 22:00:09 riastradh Exp $
Copyright © 1994-2026
The NetBSD Foundation, Inc. ALL RIGHTS RESERVED.