Module Name:    src
Committed By:   pgoyette
Date:           Sat Dec 26 12:59:01 UTC 2015

Modified Files:
        src/sys/dev/raidframe: rf_netbsdkintf.c

Log Message:
If the "finalizer" should fail to register for any reason, just report
the situation (as a WARNING) and continue.  Don't return the error code
to the caller.  Failure to register should not really happen - if it
does, all we really lose is auto-configuration of raid-sets.


To generate a diff of this commit:
cvs rdiff -u -r1.328 -r1.329 src/sys/dev/raidframe/rf_netbsdkintf.c

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

Modified files:

Index: src/sys/dev/raidframe/rf_netbsdkintf.c
diff -u src/sys/dev/raidframe/rf_netbsdkintf.c:1.328 src/sys/dev/raidframe/rf_netbsdkintf.c:1.329
--- src/sys/dev/raidframe/rf_netbsdkintf.c:1.328	Sat Dec 26 12:25:26 2015
+++ src/sys/dev/raidframe/rf_netbsdkintf.c	Sat Dec 26 12:59:00 2015
@@ -1,4 +1,4 @@
-/*	$NetBSD: rf_netbsdkintf.c,v 1.328 2015/12/26 12:25:26 pgoyette Exp $	*/
+/*	$NetBSD: rf_netbsdkintf.c,v 1.329 2015/12/26 12:59:00 pgoyette Exp $	*/
 
 /*-
  * Copyright (c) 1996, 1997, 1998, 2008-2011 The NetBSD Foundation, Inc.
@@ -101,7 +101,7 @@
  ***********************************************************/
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: rf_netbsdkintf.c,v 1.328 2015/12/26 12:25:26 pgoyette Exp $");
+__KERNEL_RCSID(0, "$NetBSD: rf_netbsdkintf.c,v 1.329 2015/12/26 12:59:00 pgoyette Exp $");
 
 #ifdef _KERNEL_OPT
 #include "opt_compat_netbsd.h"
@@ -4106,6 +4106,7 @@ raid_modcmd_init(void)
 	if (error != 0) {
 		aprint_error("WARNING: unable to register RAIDframe "
 		    "finalizer\n");
+		error = 0;
 	}
 
 	return error;

Reply via email to