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

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

 



On 09/22/2011 05:29 AM, Eric Blake wrote:
On 09/21/2011 01:02 PM, ajia@xxxxxxxxxx wrote:
From: Alex Jia<ajia@xxxxxxxxxx>

* 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@xxxxxxxxxx>
---
  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

--
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]