Source-Changes-HG archive

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

[src/prg-localcount2]: src/sys/dev Once more let's try to fix the exit path i...



details:   https://anonhg.NetBSD.org/src/rev/108808f34ba3
branches:  prg-localcount2
changeset: 823512:108808f34ba3
user:      pgoyette <pgoyette%NetBSD.org@localhost>
date:      Thu Apr 27 12:07:23 2017 +0000

description:
Once more let's try to fix the exit path in cgdclose()

diffstat:

 sys/dev/cgd.c |  6 +++---
 1 files changed, 3 insertions(+), 3 deletions(-)

diffs (28 lines):

diff -r 4874d2ef8f7b -r 108808f34ba3 sys/dev/cgd.c
--- a/sys/dev/cgd.c     Thu Apr 27 11:58:58 2017 +0000
+++ b/sys/dev/cgd.c     Thu Apr 27 12:07:23 2017 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: cgd.c,v 1.114.4.2 2017/04/27 11:58:58 pgoyette Exp $ */
+/* $NetBSD: cgd.c,v 1.114.4.3 2017/04/27 12:07:23 pgoyette Exp $ */
 
 /*-
  * Copyright (c) 2002 The NetBSD Foundation, Inc.
@@ -30,7 +30,7 @@
  */
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: cgd.c,v 1.114.4.2 2017/04/27 11:58:58 pgoyette Exp $");
+__KERNEL_RCSID(0, "$NetBSD: cgd.c,v 1.114.4.3 2017/04/27 12:07:23 pgoyette Exp $");
 
 #include <sys/types.h>
 #include <sys/param.h>
@@ -448,8 +448,8 @@
                if ((error = cgd_destroy(cs->sc_dksc.sc_dev)) != 0) {
                        aprint_error_dev(dksc->sc_dev,
                            "unable to detach instance\n");
-                       return error;
                }
+               return error;
        }
        device_release(self);
        return 0;



Home | Main Index | Thread Index | Old Index