summaryrefslogtreecommitdiffstats
path: root/include/exec
diff options
context:
space:
mode:
authorFam Zheng2013-08-23 03:14:45 +0200
committerStefan Hajnoczi2013-09-06 15:25:08 +0200
commit13c91cb7e28b47f5c4227f7e88a1378570117704 (patch)
tree9029cb1b1bbaa97a0b23ec89a89d8a2c4694fe1a /include/exec
parentvvfat: use bdrv_new() to allocate BlockDriverState (diff)
downloadqemu-13c91cb7e28b47f5c4227f7e88a1378570117704.tar.gz
qemu-13c91cb7e28b47f5c4227f7e88a1378570117704.tar.xz
qemu-13c91cb7e28b47f5c4227f7e88a1378570117704.zip
iscsi: use bdrv_new() instead of stack structure
BlockDriverState structure needs bdrv_new() to initialize refcnt, don't allocate a local structure variable and memset to 0, becasue with coming refcnt implementation, bdrv_unref will crash if bs->refcnt not initialized to 1. Signed-off-by: Fam Zheng <famz@redhat.com> Signed-off-by: Stefan Hajnoczi <stefanha@redhat.com>
Diffstat (limited to 'include/exec')
0 files changed, 0 insertions, 0 deletions