Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 11 Jun 2009 05:42:36 +0000 (UTC)
From:      Kip Macy <kmacy@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-user@freebsd.org
Subject:   svn commit: r193970 - user/kmacy/releng_7_2_xen/sys/xen/xenbus
Message-ID:  <200906110542.n5B5galc036792@svn.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: kmacy
Date: Thu Jun 11 05:42:36 2009
New Revision: 193970
URL: http://svn.freebsd.org/changeset/base/193970

Log:
  check message callback for null

Modified:
  user/kmacy/releng_7_2_xen/sys/xen/xenbus/xenbus_xs.c

Modified: user/kmacy/releng_7_2_xen/sys/xen/xenbus/xenbus_xs.c
==============================================================================
--- user/kmacy/releng_7_2_xen/sys/xen/xenbus/xenbus_xs.c	Thu Jun 11 05:36:49 2009	(r193969)
+++ user/kmacy/releng_7_2_xen/sys/xen/xenbus/xenbus_xs.c	Thu Jun 11 05:42:36 2009	(r193970)
@@ -769,7 +769,7 @@ xenwatch_thread(void *unused)
 			TAILQ_REMOVE(&watch_events, msg, list);
 		mtx_unlock(&watch_events_lock);
 
-		if (msg != NULL) {
+		if (msg != NULL && msg->u.watch.handle->callback != NULL) {
 			msg->u.watch.handle->callback(
 				msg->u.watch.handle,
 				(const char **)msg->u.watch.vec,



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200906110542.n5B5galc036792>