Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/sys/dev/pcmcia fix incomplete device_t/softc split which led...
details: https://anonhg.NetBSD.org/src/rev/9d2d8a621289
branches: trunk
changeset: 773725:9d2d8a621289
user: drochner <drochner%NetBSD.org@localhost>
date: Tue Feb 14 13:51:19 2012 +0000
description:
fix incomplete device_t/softc split which led to crash on attachment,
closes PR kern/45874 by Hauke Fath
approved by releng
diffstat:
sys/dev/pcmcia/xirc.c | 6 +++---
1 files changed, 3 insertions(+), 3 deletions(-)
diffs (27 lines):
diff -r 01b61f30c14c -r 9d2d8a621289 sys/dev/pcmcia/xirc.c
--- a/sys/dev/pcmcia/xirc.c Tue Feb 14 13:04:51 2012 +0000
+++ b/sys/dev/pcmcia/xirc.c Tue Feb 14 13:51:19 2012 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: xirc.c,v 1.32 2010/01/19 22:07:43 pooka Exp $ */
+/* $NetBSD: xirc.c,v 1.33 2012/02/14 13:51:19 drochner Exp $ */
/*-
* Copyright (c) 1999, 2000, 2004 The NetBSD Foundation, Inc.
@@ -31,7 +31,7 @@
*/
#include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: xirc.c,v 1.32 2010/01/19 22:07:43 pooka Exp $");
+__KERNEL_RCSID(0, "$NetBSD: xirc.c,v 1.33 2012/02/14 13:51:19 drochner Exp $");
#include "opt_inet.h"
@@ -602,7 +602,7 @@
void xi_xirc_attach(device_t, device_t, void *);
/* No xirc-specific goo in the softc; it's all in the parent. */
-CFATTACH_DECL(xi_xirc, sizeof(struct xi_softc),
+CFATTACH_DECL_NEW(xi_xirc, sizeof(struct xi_softc),
xi_xirc_match, xi_xirc_attach, xi_detach, NULL);
int xi_xirc_enable(struct xi_softc *);
Home |
Main Index |
Thread Index |
Old Index