summaryrefslogtreecommitdiff
path: root/sys/dev
diff options
context:
space:
mode:
authorDavid Gwynne <dlg@cvs.openbsd.org>2006-08-25 02:48:17 +0000
committerDavid Gwynne <dlg@cvs.openbsd.org>2006-08-25 02:48:17 +0000
commit7015f1479013359c596499dc2e4849f959c94597 (patch)
treed8696a068c225c955802323368f47c83cd34bae4 /sys/dev
parent1548ff7fbc2f14924f064d3d1db21853e44e0a15 (diff)
fill in the controllers name in the inq ioctl. spotted by deraadt@
Diffstat (limited to 'sys/dev')
-rw-r--r--sys/dev/pci/arc.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/sys/dev/pci/arc.c b/sys/dev/pci/arc.c
index 261a0f519a9..67597cff8d2 100644
--- a/sys/dev/pci/arc.c
+++ b/sys/dev/pci/arc.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: arc.c,v 1.41 2006/08/24 13:59:36 dlg Exp $ */
+/* $OpenBSD: arc.c,v 1.42 2006/08/25 02:48:16 dlg Exp $ */
/*
* Copyright (c) 2006 David Gwynne <dlg@openbsd.org>
@@ -1066,6 +1066,7 @@ arc_bio_inq(struct arc_softc *sc, struct bioc_inq *bi)
nvols++;
}
+ strlcpy(bi->bi_dev, DEVNAME(sc), sizeof(bi->bi_dev));
bi->bi_novol = nvols;
out:
arc_unlock(sc);