summaryrefslogtreecommitdiff
path: root/sys/dev
diff options
context:
space:
mode:
authorClaudio Jeker <claudio@cvs.openbsd.org>2007-05-29 06:36:57 +0000
committerClaudio Jeker <claudio@cvs.openbsd.org>2007-05-29 06:36:57 +0000
commit6f4a9a5150ef332b08a9b090c44c186664e3d02b (patch)
tree95c4c7c70d5a29e5484bf600379dab4a2e232f22 /sys/dev
parent05f81c945b10f986b9e4ca4939581b2d66e70814 (diff)
Correct fix for the last backout use strlcpy() to fill dv_xname. OK beck@
Diffstat (limited to 'sys/dev')
-rw-r--r--sys/dev/ipmi.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/sys/dev/ipmi.c b/sys/dev/ipmi.c
index e066ea45ebe..bf5536c9608 100644
--- a/sys/dev/ipmi.c
+++ b/sys/dev/ipmi.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: ipmi.c,v 1.57 2007/05/29 06:28:23 claudio Exp $ */
+/* $OpenBSD: ipmi.c,v 1.58 2007/05/29 06:36:56 claudio Exp $ */
/*
* Copyright (c) 2005 Jordan Hargrave
@@ -1662,6 +1662,8 @@ ipmi_match(struct device *parent, void *match, void *aux)
if (strcmp(ia->iaa_name, cf->cf_driver->cd_name))
return (0);
+ /* XXX local softc is wrong wrong wrong */
+ strlcpy(sc.sc_dev.dv_xname, "ipmi0", sizeof(sc.sc_dev.dv_xname));
/* Map registers */
if (ipmi_map_regs(&sc, ia) == 0) {
sc.sc_if->probe(&sc);