summaryrefslogtreecommitdiffstats
path: root/include/hw/qdev.h
diff options
context:
space:
mode:
authorDaniel P. Berrange2017-01-25 12:10:53 +0100
committerDaniel P. Berrange2017-01-26 11:26:18 +0100
commit80fb34eda099e7cc519a91e9701ab3c0262717b3 (patch)
tree44fc2cdb60950b04588b6ad65651b353170ae04b /include/hw/qdev.h
parentMerge remote-tracking branch 'remotes/gkurz/tags/for-upstream' into staging (diff)
downloadqemu-80fb34eda099e7cc519a91e9701ab3c0262717b3.tar.gz
qemu-80fb34eda099e7cc519a91e9701ab3c0262717b3.tar.xz
qemu-80fb34eda099e7cc519a91e9701ab3c0262717b3.zip
io: fix possible double free of task error object
If a QIOTask has an error set and the calling code uses qio_task_propagate_error() to steal the reference to that Error object, the task would not clear its own reference. This would lead to a double-free when qio_task_free runs, if the caller had (correctly) freed the Error object they now owned. Signed-off-by: Daniel P. Berrange <berrange@redhat.com>
Diffstat (limited to 'include/hw/qdev.h')
0 files changed, 0 insertions, 0 deletions