On Thu, Mar 20, 2014 at 01:43:59PM +0900, YASUOKA Masahiko wrote:
> On Wed, 19 Mar 2014 21:05:35 -0700
> "Paul B. Henson" <hen...@acm.org> wrote:
> > On Thu, Mar 20, 2014 at 10:22:51AM +0900, YASUOKA Masahiko wrote:
> >> pppx will be fixed.
> > 
> > Great :). This is a known bug then?
> 
> It's new for me.  I had not even try MAKEDEV pppx1 yet.

The following diff prevents the panic here:

Index: if_pppx.c
===================================================================
RCS file: /cvs/src/sys/net/if_pppx.c,v
retrieving revision 1.26
diff -u -p -r1.26 if_pppx.c
--- if_pppx.c   19 Oct 2013 14:46:30 -0000      1.26
+++ if_pppx.c   20 Mar 2014 10:21:04 -0000
@@ -590,7 +590,8 @@ pppxclose(dev_t dev, int flags, int mode
 
        rw_enter_write(&pppx_devs_lk);
 
-       pxd = pppx_dev_lookup(dev);
+       if ((pxd = pppx_dev_lookup(dev)) == NULL)
+               return (ENXIO);
 
        /* XXX */
        while ((pxi = LIST_FIRST(&pxd->pxd_pxis)))

Reply via email to