Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/prg-localcount2]: src/sys/dev/mscp Finish previous. :(
details: https://anonhg.NetBSD.org/src/rev/9298335012e2
branches: prg-localcount2
changeset: 823554:9298335012e2
user: pgoyette <pgoyette%NetBSD.org@localhost>
date: Wed May 17 04:29:46 2017 +0000
description:
Finish previous. :(
diffstat:
sys/dev/mscp/mscp_disk.c | 14 +++++++-------
1 files changed, 7 insertions(+), 7 deletions(-)
diffs (47 lines):
diff -r 97bda937d024 -r 9298335012e2 sys/dev/mscp/mscp_disk.c
--- a/sys/dev/mscp/mscp_disk.c Wed May 17 04:26:14 2017 +0000
+++ b/sys/dev/mscp/mscp_disk.c Wed May 17 04:29:46 2017 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: mscp_disk.c,v 1.89.8.3 2017/05/17 04:26:14 pgoyette Exp $ */
+/* $NetBSD: mscp_disk.c,v 1.89.8.4 2017/05/17 04:29:46 pgoyette Exp $ */
/*
* Copyright (c) 1988 Regents of the University of California.
* All rights reserved.
@@ -82,7 +82,7 @@
*/
#include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: mscp_disk.c,v 1.89.8.3 2017/05/17 04:26:14 pgoyette Exp $");
+__KERNEL_RCSID(0, "$NetBSD: mscp_disk.c,v 1.89.8.4 2017/05/17 04:29:46 pgoyette Exp $");
#include <sys/param.h>
#include <sys/buf.h>
@@ -1192,23 +1192,23 @@
ra = NULL;
#if NRA
if (( dev_cdevsw = cdevsw_lookup_acquire(dev)) == &ra_cdevsw) {
- ra = device_lookup_private(&ra_cd, unit);
+ ra = device_lookup_private_acquire(&ra_cd, unit);
cdevsw_release(dev_cdevsw);
return ra;
} else
cdevsw_release(dev_cdevsw);
#endif
#if NRACD
- if ((dev_cdevsw = cdevsw_lookup(dev)) == &racd_cdevsw) {
- ra = device_lookup_private(&racd_cd, unit);
+ if ((dev_cdevsw = cdevsw_lookup_acquire(dev)) == &racd_cdevsw) {
+ ra = device_lookup_private_acquire(&racd_cd, unit);
cdevsw_release(dev_cdevsw);
return ra;
} else
cdevsw_release(dev_cdevsw);
#endif
#if NRX
- if (cdevsw_lookup(dev) == &rx_cdevsw)
- ra = device_lookup_private(&rx_cd, unit);
+ if ((dev_cdevsw = cdevsw_lookup_acquire(dev)) == &rx_cdevsw)
+ ra = device_lookup_private_acquire(&rx_cd, unit);
cdevsw_release(dev_cdevsw);
return ra;
else
Home |
Main Index |
Thread Index |
Old Index