[libvirt] [PATCH 2/3] vbox: handle errors of virDomainHostdevDefAlloc correctly

2013-12-01 Thread Ryota Ozaki
The original code ignored errors of virDomainHostdevDefAlloc, however, we should properly do error return from the function if it occurs. The fix pulls out virDomainHostdevDefAlloc from the loop and executes it all together before the loop. So we can easily return on errors without the notion of

Re: [libvirt] [PATCH 2/3] vbox: handle errors of virDomainHostdevDefAlloc correctly

2013-12-01 Thread Daniel Veillard
Okay, that sounds fine, applied and pushed too, thank ! Daniel On Sun, Dec 01, 2013 at 11:46:06PM +0900, Ryota Ozaki wrote: The original code ignored errors of virDomainHostdevDefAlloc, however, we should properly do error return from the function if it occurs. The fix pulls out