]> git.ipfire.org Git - thirdparty/libvirt.git/commit
qemuBlockJobRefreshJobs: Warn readers that 'job' may be invalid after update
authorPeter Krempa <pkrempa@redhat.com>
Thu, 26 Mar 2020 12:31:05 +0000 (13:31 +0100)
committerPeter Krempa <pkrempa@redhat.com>
Fri, 3 Apr 2020 07:34:49 +0000 (09:34 +0200)
commit6746136a2763471aef94681200580ed310add81d
tree998f2ef206c714d7a2ca25edc5f5b75c70dff2f1
parentddce75fac0b80ab93b330f55bb4484fea2c21c38
qemuBlockJobRefreshJobs: Warn readers that 'job' may be invalid after update

Add a comment noting that job update can cause the pointer to be invalid
and thus should not be accessed after.

Signed-off-by: Peter Krempa <pkrempa@redhat.com>
Reviewed-by: Pavel Mores <pmores@redhat.com>
Reviewed-by: Michal Privoznik <mprivozn@redhat.com>
src/qemu/qemu_blockjob.c