Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/netbsd-8]: src/sys/dev/ata Pull up following revision(s) (requested by p...
details: https://anonhg.NetBSD.org/src/rev/d780ae00a9ac
branches: netbsd-8
changeset: 435082:d780ae00a9ac
user: martin <martin%NetBSD.org@localhost>
date: Sat Jun 23 11:05:21 2018 +0000
description:
Pull up following revision(s) (requested by pgoyette in ticket #894):
sys/dev/ata/ata_raid.c: revision 1.40
Call config_cfattach_attach() regardless of whether the module is
being built as part of a kernel or as a external module.
Addresses kern/53389 - thanks for the report!
XXX pullup-8
diffstat:
sys/dev/ata/ata_raid.c | 11 ++++++-----
1 files changed, 6 insertions(+), 5 deletions(-)
diffs (49 lines):
diff -r 9861e14152b9 -r d780ae00a9ac sys/dev/ata/ata_raid.c
--- a/sys/dev/ata/ata_raid.c Sat Jun 23 11:03:27 2018 +0000
+++ b/sys/dev/ata/ata_raid.c Sat Jun 23 11:05:21 2018 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: ata_raid.c,v 1.39 2016/09/27 08:05:34 pgoyette Exp $ */
+/* $NetBSD: ata_raid.c,v 1.39.8.1 2018/06/23 11:05:21 martin Exp $ */
/*
* Copyright (c) 2003 Wasabi Systems, Inc.
@@ -40,7 +40,7 @@
*/
#include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: ata_raid.c,v 1.39 2016/09/27 08:05:34 pgoyette Exp $");
+__KERNEL_RCSID(0, "$NetBSD: ata_raid.c,v 1.39.8.1 2018/06/23 11:05:21 martin Exp $");
#include <sys/param.h>
#include <sys/buf.h>
@@ -338,26 +338,27 @@
error = config_cfdriver_attach(&ataraid_cd);
if (error)
break;
+#endif
error = config_cfattach_attach(ataraid_cd.cd_name, &ataraid_ca);
if (error) {
+#ifdef _MODULE
config_cfdriver_detach(&ataraid_cd);
+#endif
aprint_error("%s: unable to register cfattach for \n"
"%s, error %d", __func__, ataraid_cd.cd_name,
error);
break;
}
-#endif
break;
case MODULE_CMD_FINI:
-#ifdef _MODULE
-
error = config_cfattach_detach(ataraid_cd.cd_name, &ataraid_ca);
if (error) {
aprint_error("%s: failed to detach %s cfattach, "
"error %d\n", __func__, ataraid_cd.cd_name, error);
break;
}
+#ifdef _MODULE
error = config_cfdriver_detach(&ataraid_cd);
if (error) {
(void)config_cfattach_attach(ataraid_cd.cd_name,
Home |
Main Index |
Thread Index |
Old Index