1550 SMF manifest find should return -1 on allocation failure
authorRichard Lowe <richlowe@richlowe.net>
Mon, 16 May 2011 06:23:38 +0100
changeset 13468 bf3e5d60b8e6
parent 13467 7ad3a0a0b2cb
child 13469 b8e89e5c4167
1550 SMF manifest find should return -1 on allocation failure Reviewed by: Joshua M. Clulow <[email protected]> Reviewed by: Alexander Eremin <[email protected]> Reviewed by: Igor Kozhukhov <[email protected]> Approved by: Garrett D'Amore <[email protected]>
usr/src/cmd/svc/common/manifest_find.c
--- a/usr/src/cmd/svc/common/manifest_find.c	Mon May 16 07:03:03 2011 +0100
+++ b/usr/src/cmd/svc/common/manifest_find.c	Mon May 16 06:23:38 2011 +0100
@@ -258,7 +258,7 @@
 
 	tsdp = get_thread_specific_data();
 	if (tsdp == NULL)
-		return (NULL);
+		return (-1);
 
 	tsdp->tsd_flags = flags;