changeset 13468:bf3e5d60b8e6

1550 SMF manifest find should return -1 on allocation failure Reviewed by: Joshua M. Clulow <josh@sysmgr.org> Reviewed by: Alexander Eremin <alexander.eremin@nexenta.com> Reviewed by: Igor Kozhukhov <ikozhukhov@gmail.com> Approved by: Garrett D'Amore <garrett@nexenta.com>
author Richard Lowe <richlowe@richlowe.net>
date Mon, 16 May 2011 06:23:38 +0100
parents 7ad3a0a0b2cb
children b8e89e5c4167
files usr/src/cmd/svc/common/manifest_find.c
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- 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;