Module Name: src Committed By: pgoyette Date: Sat Apr 29 08:55:37 UTC 2017
Modified Files: src/sys/dev [prg-localcount2]: cgd.c Log Message: add a comment - NFC To generate a diff of this commit: cvs rdiff -u -r1.114.4.4 -r1.114.4.5 src/sys/dev/cgd.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/cgd.c diff -u src/sys/dev/cgd.c:1.114.4.4 src/sys/dev/cgd.c:1.114.4.5 --- src/sys/dev/cgd.c:1.114.4.4 Fri Apr 28 06:00:33 2017 +++ src/sys/dev/cgd.c Sat Apr 29 08:55:37 2017 @@ -1,4 +1,4 @@ -/* $NetBSD: cgd.c,v 1.114.4.4 2017/04/28 06:00:33 pgoyette Exp $ */ +/* $NetBSD: cgd.c,v 1.114.4.5 2017/04/29 08:55:37 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.4 2017/04/28 06:00:33 pgoyette Exp $"); +__KERNEL_RCSID(0, "$NetBSD: cgd.c,v 1.114.4.5 2017/04/29 08:55:37 pgoyette Exp $"); #include <sys/types.h> #include <sys/param.h> @@ -449,6 +449,8 @@ cgdclose(dev_t dev, int flags, int fmt, } return error; } + + /* Unit is still attached - just return */ device_release(self); return 0; }