Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/pgoyette-localcount]: src/sys/kern Continue previous - finish what we st...
details: https://anonhg.NetBSD.org/src/rev/53b0a65da4fb
branches: pgoyette-localcount
changeset: 852846:53b0a65da4fb
user: pgoyette <pgoyette%NetBSD.org@localhost>
date: Fri Jul 22 23:04:01 2016 +0000
description:
Continue previous - finish what we started
diffstat:
sys/kern/subr_devsw.c | 8 ++++----
1 files changed, 4 insertions(+), 4 deletions(-)
diffs (36 lines):
diff -r 18b03e798b75 -r 53b0a65da4fb sys/kern/subr_devsw.c
--- a/sys/kern/subr_devsw.c Fri Jul 22 23:02:55 2016 +0000
+++ b/sys/kern/subr_devsw.c Fri Jul 22 23:04:01 2016 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: subr_devsw.c,v 1.34.2.11 2016/07/22 23:02:55 pgoyette Exp $ */
+/* $NetBSD: subr_devsw.c,v 1.34.2.12 2016/07/22 23:04:01 pgoyette Exp $ */
/*-
* Copyright (c) 2001, 2002, 2007, 2008 The NetBSD Foundation, Inc.
@@ -69,7 +69,7 @@
*/
#include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: subr_devsw.c,v 1.34.2.11 2016/07/22 23:02:55 pgoyette Exp $");
+__KERNEL_RCSID(0, "$NetBSD: subr_devsw.c,v 1.34.2.12 2016/07/22 23:04:01 pgoyette Exp $");
#ifdef _KERNEL_OPT
#include "opt_dtrace.h"
@@ -479,7 +479,7 @@
/* If the devsw is not statically linked, acquire a reference */
if (bdev->d_localcount != NULL)
- localcount_acquire(bdevsw[bmajor]->d_localcount);
+ localcount_acquire(bdev->d_localcount);
out: pserialize_read_exit(s);
@@ -540,7 +540,7 @@
/* If the devsw is not statically linked, acquire a reference */
if (cdev->d_localcount != NULL)
- localcount_acquire(cdevsw[cmajor]->d_localcount);
+ localcount_acquire(cdev->d_localcount);
out: pserialize_read_exit(s);
Home |
Main Index |
Thread Index |
Old Index