mirror of
https://gitlab.com/libvirt/libvirt.git
synced 2025-03-07 17:28:15 +00:00
libxl: Resolve Coverity CHECKED_RETURN
Add a check of the return for virDomainHostdevInsert() like every other call. Signed-off-by: John Ferlan <jferlan@redhat.com>
This commit is contained in:
parent
78fbc79d85
commit
245134fc1d
@ -2891,7 +2891,8 @@ libxlDomainAttachDeviceConfig(virDomainDefPtr vmdef, virDomainDeviceDefPtr dev)
|
||||
return -1;
|
||||
}
|
||||
|
||||
virDomainHostdevInsert(vmdef, hostdev);
|
||||
if (virDomainHostdevInsert(vmdef, hostdev) < 0)
|
||||
return -1;
|
||||
break;
|
||||
|
||||
default:
|
||||
|
Loading…
x
Reference in New Issue
Block a user