Source-Changes-HG archive

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

[src/trunk]: src/sys/dev/pcmcia two spl leaks, found by Mootja



details:   https://anonhg.NetBSD.org/src/rev/8a5a43957dbd
branches:  trunk
changeset: 824989:8a5a43957dbd
user:      maxv <maxv%NetBSD.org@localhost>
date:      Sun Jun 25 12:25:02 2017 +0000

description:
two spl leaks, found by Mootja

diffstat:

 sys/dev/pcmcia/if_malo_pcmcia.c |  6 ++++--
 1 files changed, 4 insertions(+), 2 deletions(-)

diffs (34 lines):

diff -r ce2cef75b948 -r 8a5a43957dbd sys/dev/pcmcia/if_malo_pcmcia.c
--- a/sys/dev/pcmcia/if_malo_pcmcia.c   Sun Jun 25 12:21:00 2017 +0000
+++ b/sys/dev/pcmcia/if_malo_pcmcia.c   Sun Jun 25 12:25:02 2017 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: if_malo_pcmcia.c,v 1.13 2017/02/02 10:05:35 nonaka Exp $       */
+/*     $NetBSD: if_malo_pcmcia.c,v 1.14 2017/06/25 12:25:02 maxv Exp $ */
 /*      $OpenBSD: if_malo.c,v 1.65 2009/03/29 21:53:53 sthen Exp $ */
 
 /*
@@ -18,7 +18,7 @@
  */
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: if_malo_pcmcia.c,v 1.13 2017/02/02 10:05:35 nonaka Exp $");
+__KERNEL_RCSID(0, "$NetBSD: if_malo_pcmcia.c,v 1.14 2017/06/25 12:25:02 maxv Exp $");
 
 #ifdef _MODULE
 #include <sys/module.h>
@@ -242,6 +242,7 @@
                if_deactivate(ifp);
                break;
        default:
+               splx(s);
                return EOPNOTSUPP;
        }
        splx(s);
@@ -1983,6 +1984,7 @@
        if (psize > MALO_CMD_BUFFER_SIZE) {
                aprint_error_dev(sc->sc_dev,
                    "command response too large: %dbyte\n", psize);
+               splx(s);
                return EIO;
        }
 



Home | Main Index | Thread Index | Old Index