summaryrefslogtreecommitdiffstats
path: root/usr.sbin
diff options
context:
space:
mode:
authorimp <imp@FreeBSD.org>2001-11-02 17:28:43 +0000
committerimp <imp@FreeBSD.org>2001-11-02 17:28:43 +0000
commitbf4b2ea40eae132c607ed882ce91cde889b727a3 (patch)
tree6aea951e8c9cca6e9da6b3a9e98575fac96b2a93 /usr.sbin
parenta17e2c0c4408996307edf2dee263e96b99339a92 (diff)
downloadFreeBSD-src-bf4b2ea40eae132c607ed882ce91cde889b727a3.zip
FreeBSD-src-bf4b2ea40eae132c607ed882ce91cde889b727a3.tar.gz
Always set unit number to -1 unless some other unit is specified in
the config file. This fixes the breakage caused by the recent change in the behavior of device_add_child for ata (which shows soren's reservations were well founded). Submitted by: OGAWA Takaya <t-ogawa@triaez.kaisei.org>
Diffstat (limited to 'usr.sbin')
-rw-r--r--usr.sbin/pccard/pccardd/file.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/usr.sbin/pccard/pccardd/file.c b/usr.sbin/pccard/pccardd/file.c
index 0bfcc0b..4643812 100644
--- a/usr.sbin/pccard/pccardd/file.c
+++ b/usr.sbin/pccard/pccardd/file.c
@@ -573,6 +573,7 @@ new_driver(char *name)
drivers = drvp;
drvp->name = newstr(name);
drvp->kernel = newstr(name);
+ drvp->unit = -1;
p = drvp->kernel;
while (*p++)
if (*p >= '0' && *p <= '9') {
OpenPOWER on IntegriCloud