Source-Changes-HG archive

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

[src/trunk]: src/sys/dev/pci missing splx() found by brainy



details:   https://anonhg.NetBSD.org/src/rev/75356970b946
branches:  trunk
changeset: 340556:75356970b946
user:      christos <christos%NetBSD.org@localhost>
date:      Sat Sep 12 19:19:11 2015 +0000

description:
missing splx() found by brainy

diffstat:

 sys/dev/pci/if_jme.c |  5 +++--
 1 files changed, 3 insertions(+), 2 deletions(-)

diffs (26 lines):

diff -r cc16702108a4 -r 75356970b946 sys/dev/pci/if_jme.c
--- a/sys/dev/pci/if_jme.c      Sat Sep 12 19:18:24 2015 +0000
+++ b/sys/dev/pci/if_jme.c      Sat Sep 12 19:19:11 2015 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: if_jme.c,v 1.27 2015/04/13 16:33:25 riastradh Exp $    */
+/*     $NetBSD: if_jme.c,v 1.28 2015/09/12 19:19:11 christos Exp $     */
 
 /*
  * Copyright (c) 2008 Manuel Bouyer.  All rights reserved.
@@ -58,7 +58,7 @@
  */
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: if_jme.c,v 1.27 2015/04/13 16:33:25 riastradh Exp $");
+__KERNEL_RCSID(0, "$NetBSD: if_jme.c,v 1.28 2015/09/12 19:19:11 christos Exp $");
 
 
 #include <sys/param.h>
@@ -949,6 +949,7 @@
                        error = 0;
                else if (error != 0) {
                        aprint_error_dev(sc->jme_dev, "could not set media\n");
+                       splx(s);
                        return error;
                }
        }



Home | Main Index | Thread Index | Old Index