[libvirt] [PATCH] qemu: avoid dereferencing a NULL pointer

Alex Jia ajia at redhat.com
Thu Sep 22 01:20:34 UTC 2011


On 09/22/2011 05:29 AM, Eric Blake wrote:
> On 09/21/2011 01:02 PM, ajia at redhat.com wrote:
>> From: Alex Jia<ajia at redhat.com>
>>
>> * src/qemu/qemu_process.c: Taking if (qemuDomainObjEndJob(driver, 
>> obj) == 0)
>>    true branch then 'obj' is NULL, virDomainObjIsActive(obj) and
>>    virDomainObjUnref(obj) will dereference NULL pointer.
>>
>> Signed-off-by: Alex Jia<ajia at redhat.com>
>> ---
>>   src/qemu/qemu_process.c |   32 +++++++++++++++++---------------
>>   1 files changed, 17 insertions(+), 15 deletions(-)
>
> Looks like this got sent twice.  At any rate,
>
> ACK and pushed.
>
I resend this patch due to network issue, they are the same patch.

Thanks,
Alex




More information about the libvir-list mailing list