Source-Changes-HG archive

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

[src/trunk]: src/sys/dev call disk_ioctl.



details:   https://anonhg.NetBSD.org/src/rev/f09a472e4b16
branches:  trunk
changeset: 335207:f09a472e4b16
user:      christos <christos%NetBSD.org@localhost>
date:      Tue Dec 30 02:21:10 2014 +0000

description:
call disk_ioctl.

diffstat:

 sys/dev/ccd.c |  8 ++++++--
 1 files changed, 6 insertions(+), 2 deletions(-)

diffs (29 lines):

diff -r 4215065da833 -r f09a472e4b16 sys/dev/ccd.c
--- a/sys/dev/ccd.c     Tue Dec 30 01:22:09 2014 +0000
+++ b/sys/dev/ccd.c     Tue Dec 30 02:21:10 2014 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: ccd.c,v 1.154 2014/10/11 12:36:25 mlelstv Exp $        */
+/*     $NetBSD: ccd.c,v 1.155 2014/12/30 02:21:10 christos Exp $       */
 
 /*-
  * Copyright (c) 1996, 1997, 1998, 1999, 2007, 2009 The NetBSD Foundation, Inc.
@@ -88,7 +88,7 @@
  */
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: ccd.c,v 1.154 2014/10/11 12:36:25 mlelstv Exp $");
+__KERNEL_RCSID(0, "$NetBSD: ccd.c,v 1.155 2014/12/30 02:21:10 christos Exp $");
 
 #if defined(_KERNEL_OPT)
 #include "opt_compat_netbsd.h"
@@ -1154,6 +1154,10 @@
                }
        }
 
+       error = disk_ioctl(&cs->sc_dkdev, cmd, data, flag, l); 
+       if (error != EPASSTHROUGH)
+               goto out;
+
        switch (cmd) {
        case CCDIOCSET:
                if (cs->sc_flags & CCDF_INITED) {



Home | Main Index | Thread Index | Old Index