Source-Changes-HG archive

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

[src/trunk]: src/sys/dev/mscp Fix device_t split glitch



details:   https://anonhg.NetBSD.org/src/rev/bccc5e018861
branches:  trunk
changeset: 785717:bccc5e018861
user:      martin <martin%NetBSD.org@localhost>
date:      Tue Mar 26 23:29:11 2013 +0000

description:
Fix device_t split glitch

diffstat:

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

diffs (27 lines):

diff -r 4c9777239de4 -r bccc5e018861 sys/dev/mscp/mscp_subr.c
--- a/sys/dev/mscp/mscp_subr.c  Tue Mar 26 20:58:35 2013 +0000
+++ b/sys/dev/mscp/mscp_subr.c  Tue Mar 26 23:29:11 2013 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: mscp_subr.c,v 1.44 2012/10/27 17:18:27 chs Exp $       */
+/*     $NetBSD: mscp_subr.c,v 1.45 2013/03/26 23:29:11 martin Exp $    */
 /*
  * Copyright (c) 1988 Regents of the University of California.
  * All rights reserved.
@@ -75,7 +75,7 @@
  */
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: mscp_subr.c,v 1.44 2012/10/27 17:18:27 chs Exp $");
+__KERNEL_RCSID(0, "$NetBSD: mscp_subr.c,v 1.45 2013/03/26 23:29:11 martin Exp $");
 
 #include <sys/param.h>
 #include <sys/device.h>
@@ -550,7 +550,7 @@
 void
 mscp_strategy(struct buf *bp, device_t usc)
 {
-       struct  mscp_softc *mi = (void *)usc;
+       struct  mscp_softc *mi = device_private(usc);
        int s = spluba();
 
        bufq_put(mi->mi_resq, bp);



Home | Main Index | Thread Index | Old Index