From 7015f1479013359c596499dc2e4849f959c94597 Mon Sep 17 00:00:00 2001 From: David Gwynne Date: Fri, 25 Aug 2006 02:48:17 +0000 Subject: fill in the controllers name in the inq ioctl. spotted by deraadt@ --- sys/dev/pci/arc.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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 @@ -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); -- cgit v1.2.3