Source-Changes-HG archive

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

[src/trunk]: src/sys/dev/ppbus spl leak, found by Mootja



details:   https://anonhg.NetBSD.org/src/rev/851c652438e5
branches:  trunk
changeset: 824990:851c652438e5
user:      maxv <maxv%NetBSD.org@localhost>
date:      Sun Jun 25 12:27:13 2017 +0000

description:
spl leak, found by Mootja

diffstat:

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

diffs (26 lines):

diff -r 8a5a43957dbd -r 851c652438e5 sys/dev/ppbus/if_plip.c
--- a/sys/dev/ppbus/if_plip.c   Sun Jun 25 12:25:02 2017 +0000
+++ b/sys/dev/ppbus/if_plip.c   Sun Jun 25 12:27:13 2017 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: if_plip.c,v 1.27 2016/05/08 03:11:33 christos Exp $ */
+/* $NetBSD: if_plip.c,v 1.28 2017/06/25 12:27:13 maxv Exp $ */
 
 /*-
  * Copyright (c) 1997 Poul-Henning Kamp
@@ -31,7 +31,7 @@
  */
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: if_plip.c,v 1.27 2016/05/08 03:11:33 christos Exp $");
+__KERNEL_RCSID(0, "$NetBSD: if_plip.c,v 1.28 2017/06/25 12:27:13 maxv Exp $");
 
 /*
  * Parallel port TCP/IP interfaces added.  I looked at the driver from
@@ -445,6 +445,7 @@
                case AF_INET:
                        break;
                default:
+                       splx(s);
                        return EAFNOSUPPORT;
                }
                break;



Home | Main Index | Thread Index | Old Index