mirror of
https://gitlab.com/libvirt/libvirt.git
synced 2025-03-07 17:28:15 +00:00
conf: Add return value check to virResctrlAllocForeachCache
Add return value check to virResctrlAllocForeachCache in virDomainCachetuneDefFormat. The virResctrlAllocForeachCache does have return value, so need check return value to make sure function executed without error. Signed-off-by: Bing Niu <bing.niu@intel.com> Reviewed-by: John Ferlan <jferlan@redhat.com>
This commit is contained in:
parent
6956b7eedc
commit
8d6f508e64
@ -27294,10 +27294,10 @@ virDomainCachetuneDefFormat(virBufferPtr buf,
|
||||
int ret = -1;
|
||||
|
||||
virBufferSetChildIndent(&childrenBuf, buf);
|
||||
virResctrlAllocForeachCache(resctrl->alloc,
|
||||
virDomainCachetuneDefFormatHelper,
|
||||
&childrenBuf);
|
||||
|
||||
if (virResctrlAllocForeachCache(resctrl->alloc,
|
||||
virDomainCachetuneDefFormatHelper,
|
||||
&childrenBuf) < 0)
|
||||
goto cleanup;
|
||||
|
||||
if (virBufferCheckError(&childrenBuf) < 0)
|
||||
goto cleanup;
|
||||
|
Loading…
x
Reference in New Issue
Block a user