summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--usr/src/lib/fm/libfmd_agent/common/fmd_agent.c6
1 files changed, 1 insertions, 5 deletions
diff --git a/usr/src/lib/fm/libfmd_agent/common/fmd_agent.c b/usr/src/lib/fm/libfmd_agent/common/fmd_agent.c
index 928978fa17..62ec7cc331 100644
--- a/usr/src/lib/fm/libfmd_agent/common/fmd_agent.c
+++ b/usr/src/lib/fm/libfmd_agent/common/fmd_agent.c
@@ -129,12 +129,8 @@ fmd_agent_nvl_ioctl(fmd_agent_hdl_t *hdl, int cmd, uint32_t ver,
if (errno == ENAMETOOLONG && outsz != 0 &&
outsz < (FM_IOC_OUT_MAXBUFSZ / 2)) {
umem_free(outbuf, outsz);
+ outbuf = NULL;
outsz *= 2;
- outbuf = umem_alloc(outsz, UMEM_DEFAULT);
- if (outbuf == NULL) {
- err = errno;
- break;
- }
} else {
err = errno;
break;