Source-Changes-HG archive

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

[src/trunk]: src/sys/dev/wsfb for WSDISPLAYIO_SMODE, if the bus ioctl handler...



details:   https://anonhg.NetBSD.org/src/rev/9b7f86e4f74b
branches:  trunk
changeset: 783864:9b7f86e4f74b
user:      jmcneill <jmcneill%NetBSD.org@localhost>
date:      Thu Jan 10 22:06:59 2013 +0000

description:
for WSDISPLAYIO_SMODE, if the bus ioctl handler returns EPASSTHROUGH, dont treat it as an error

diffstat:

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

diffs (27 lines):

diff -r 5bf79bbc18b1 -r 9b7f86e4f74b sys/dev/wsfb/genfb.c
--- a/sys/dev/wsfb/genfb.c      Thu Jan 10 22:06:32 2013 +0000
+++ b/sys/dev/wsfb/genfb.c      Thu Jan 10 22:06:59 2013 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: genfb.c,v 1.49 2013/01/09 01:57:59 jmcneill Exp $ */
+/*     $NetBSD: genfb.c,v 1.50 2013/01/10 22:06:59 jmcneill Exp $ */
 
 /*-
  * Copyright (c) 2007 Michael Lorenz
@@ -27,7 +27,7 @@
  */
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: genfb.c,v 1.49 2013/01/09 01:57:59 jmcneill Exp $");
+__KERNEL_RCSID(0, "$NetBSD: genfb.c,v 1.50 2013/01/10 22:06:59 jmcneill Exp $");
 
 #include <sys/param.h>
 #include <sys/systm.h>
@@ -380,7 +380,7 @@
                        if (sc->sc_ops.genfb_ioctl)
                                error = sc->sc_ops.genfb_ioctl(sc, vs,
                                            cmd, data, flag, l);
-                       if (error)
+                       if (error && error != EPASSTHROUGH)
                                return error;
 
                        if (new_mode != sc->sc_mode) {



Home | Main Index | Thread Index | Old Index