From 6f4a9a5150ef332b08a9b090c44c186664e3d02b Mon Sep 17 00:00:00 2001 From: Claudio Jeker Date: Tue, 29 May 2007 06:36:57 +0000 Subject: Correct fix for the last backout use strlcpy() to fill dv_xname. OK beck@ --- sys/dev/ipmi.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) 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); -- cgit v1.2.3