Author: ae
Date: Tue Aug 10 11:02:55 2010
New Revision: 211140
URL: http://svn.freebsd.org/changeset/base/211140

Log:
  MFC r210795:
  
    Check that gsp is not NULL before access. It can be NULL
    for some cases.
  
  Approved by:  kib (mentor)

Modified:
  stable/8/sys/geom/sched/g_sched.c
Directory Properties:
  stable/8/sys/   (props changed)
  stable/8/sys/amd64/include/xen/   (props changed)
  stable/8/sys/cam/   (props changed)
  stable/8/sys/cddl/contrib/opensolaris/   (props changed)
  stable/8/sys/contrib/dev/acpica/   (props changed)
  stable/8/sys/contrib/pf/   (props changed)
  stable/8/sys/dev/xen/xenpci/   (props changed)

Modified: stable/8/sys/geom/sched/g_sched.c
==============================================================================
--- stable/8/sys/geom/sched/g_sched.c   Tue Aug 10 10:17:01 2010        
(r211139)
+++ stable/8/sys/geom/sched/g_sched.c   Tue Aug 10 11:02:55 2010        
(r211140)
@@ -1887,7 +1887,7 @@ g_sched_dumpconf(struct sbuf *sb, const 
        if (indent == NULL) {   /* plaintext */
                sbuf_printf(sb, " algo %s", gsp ? gsp->gs_name : "--");
        }
-       if (gsp->gs_dumpconf)
+       if (gsp != NULL && gsp->gs_dumpconf)
                gsp->gs_dumpconf(sb, indent, gp, cp, pp);
 }
 
_______________________________________________
svn-src-all@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/svn-src-all
To unsubscribe, send any mail to "svn-src-all-unsubscr...@freebsd.org"

Reply via email to