diff options
author | Dan McDonald <danmcd@mnx.io> | 2022-12-16 13:29:26 -0500 |
---|---|---|
committer | Dan McDonald <danmcd@mnx.io> | 2022-12-16 13:29:26 -0500 |
commit | c2b15a66358531a6d0407d3678b210e752a0b606 (patch) | |
tree | 37db6d27eafd3b8bb0ff1c25ee6c8b98070f5444 /usr/src/lib/fm | |
parent | 3b01c8dd53b81ad475bf8152609c8c4803a9af55 (diff) | |
parent | f4d2cf74960df993f48d42d323f16867fc6b9bdf (diff) | |
download | illumos-joyent-master.tar.gz |
commit f4d2cf74960df993f48d42d323f16867fc6b9bdf
15253 14993 broke test-runner -l option
commit fb2301db8e408458b542c1f5fa07b5b8a3a95395
15258 libsmb: tautological-pointer-compare
commit abd30308264aa9ca2b1c71565b841fc94256d07b
15211 smbtorture failures in smb2.delete-on-close-perms.READONLY
commit 0663b557d8c7575927b005cab08d9f19c8b98c25
15200 libdladm: error: '&&' within '||'
commit bf7adeeaefd6f9806398f446e4b87af240a6770e
15199 libdladm: unused label
commit 92f549282aaface1e6f92329085e28edcf24054f
15207 libfmd_agent: memory leak in fmd_agent_nvl_ioctl
commit 7b5987898994d86cd20e00dbf8c305dfbfbb8bea
15135 stdalign.h is very C11-y, but perhaps disrespectful of C++
Diffstat (limited to 'usr/src/lib/fm')
-rw-r--r-- | usr/src/lib/fm/libfmd_agent/common/fmd_agent.c | 6 |
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; |