svn commit: r211140 - stable/8/sys/geom/sched
Andrey V. Elsukov
ae at FreeBSD.org
Tue Aug 10 11:02:55 UTC 2010
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);
}
More information about the svn-src-stable
mailing list