Date: Tue, 10 Aug 2010 11:02:55 +0000 (UTC) From: "Andrey V. Elsukov" <ae@FreeBSD.org> To: src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-stable@freebsd.org, svn-src-stable-8@freebsd.org Subject: svn commit: r211140 - stable/8/sys/geom/sched Message-ID: <201008101102.o7AB2tko099114@svn.freebsd.org>
next in thread | raw e-mail | index | archive | help
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); }
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201008101102.o7AB2tko099114>