changeset 10658:b6d8a8316c41

6860216 hald is core dumping on snv_118
author Xiaolin Zhang - Sun Microsystems - Beijing China <Xiao-Lin.Zhang@Sun.COM>
date Sun, 27 Sep 2009 11:34:46 +0800
parents 468e99e6f9ea
children 933eae95189d
files usr/src/cmd/hal/hald/hald_runner.c
diffstat 1 files changed, 4 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/usr/src/cmd/hal/hald/hald_runner.c	Sat Sep 26 18:12:09 2009 -0700
+++ b/usr/src/cmd/hal/hald/hald_runner.c	Sun Sep 27 11:34:46 2009 +0800
@@ -507,6 +507,10 @@
                                               msg, &call, INT_MAX))
     DIE (("No memory"));
 
+  /* the connection was disconnected */
+  if (call == NULL)
+    goto error;
+
   hd = malloc(sizeof(HelperData));
   hd->d = device;
   hd->cb = cb;