Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/sys/dev/raidframe If the "finalizer" should fail to register...



details:   https://anonhg.NetBSD.org/src/rev/67991be8b9ba
branches:  trunk
changeset: 342518:67991be8b9ba
user:      pgoyette <pgoyette%NetBSD.org@localhost>
date:      Sat Dec 26 12:59:00 2015 +0000

description:
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.

diffstat:

 sys/dev/raidframe/rf_netbsdkintf.c |  5 +++--
 1 files changed, 3 insertions(+), 2 deletions(-)

diffs (26 lines):

diff -r f5be39e70003 -r 67991be8b9ba sys/dev/raidframe/rf_netbsdkintf.c
--- a/sys/dev/raidframe/rf_netbsdkintf.c        Sat Dec 26 12:25:26 2015 +0000
+++ b/sys/dev/raidframe/rf_netbsdkintf.c        Sat Dec 26 12:59:00 2015 +0000
@@ -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 @@
        if (error != 0) {
                aprint_error("WARNING: unable to register RAIDframe "
                    "finalizer\n");
+               error = 0;
        }
 
        return error;



Home | Main Index | Thread Index | Old Index