Re: [PATCH 1/3] lxc_process: Resolve Coverity NULL_RETURNS error

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On 05/16/2013 10:19 AM, Eric Blake wrote:
> On 05/16/2013 08:01 AM, John Ferlan wrote:
>> In virLXCProcessReboot, if the 'conn' value is NULL, the eventual
>> call to virLXCNetworkLookupByName() via virLXCProcessStart() and
>> virLXCProcessSetupInterfaces() will cause a core since it references
>> conn->networkDriver directly.
> 
> Did you investigate which commit introduced this problem?

yes, cb612ee4, when the function was created.

I will add it to the commit message

Given Daniel's response - is there a preference to perhaps add some sort
of message that conn was NULL from the virConnectOpen().  I would think
that the virLXCProcessStop() would still need to occur though, but also
wouldn't want to assume anything :-)

John

> 
>> ---
>>  src/lxc/lxc_process.c | 4 ++--
>>  1 file changed, 2 insertions(+), 2 deletions(-)
> 
> ACK.
> 

--
libvir-list mailing list
libvir-list@xxxxxxxxxx
https://www.redhat.com/mailman/listinfo/libvir-list




[Index of Archives]     [Virt Tools]     [Libvirt Users]     [Lib OS Info]     [Fedora Users]     [Fedora Desktop]     [Fedora SELinux]     [Big List of Linux Books]     [Yosemite News]     [KDE Users]     [Fedora Tools]