summaryrefslogtreecommitdiff
path: root/usr/src/lib/libscf/common/midlevel.c
diff options
context:
space:
mode:
authortn143363 <none@none>2008-05-07 16:44:28 -0700
committertn143363 <none@none>2008-05-07 16:44:28 -0700
commitbc9767f98f357706344eb42277518cb70f563147 (patch)
treed34218ed1e60edb34ab631592b4551b63b38bcf5 /usr/src/lib/libscf/common/midlevel.c
parent33649781048a478eaa5fa15460fc764530f86c8c (diff)
downloadillumos-gate-bc9767f98f357706344eb42277518cb70f563147.tar.gz
6659858 Callers of scf_pg_update sometimes don't handle return value correctly
Diffstat (limited to 'usr/src/lib/libscf/common/midlevel.c')
-rw-r--r--usr/src/lib/libscf/common/midlevel.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/usr/src/lib/libscf/common/midlevel.c b/usr/src/lib/libscf/common/midlevel.c
index 7a45f6a34b..a15fb445c7 100644
--- a/usr/src/lib/libscf/common/midlevel.c
+++ b/usr/src/lib/libscf/common/midlevel.c
@@ -20,7 +20,7 @@
*/
/*
- * Copyright 2007 Sun Microsystems, Inc. All rights reserved.
+ * Copyright 2008 Sun Microsystems, Inc. All rights reserved.
* Use is subject to license terms.
*/
@@ -904,7 +904,7 @@ add:
}
scf_transaction_reset(tx);
- if (scf_pg_update(pg) != 0) {
+ if (scf_pg_update(pg) == -1) {
switch (scf_error()) {
case SCF_ERROR_CONNECTION_BROKEN:
default: