diff options
| author | Fam Zheng | 2013-08-23 03:14:45 +0200 |
|---|---|---|
| committer | Stefan Hajnoczi | 2013-09-06 15:25:08 +0200 |
| commit | 13c91cb7e28b47f5c4227f7e88a1378570117704 (patch) | |
| tree | 9029cb1b1bbaa97a0b23ec89a89d8a2c4694fe1a /include/exec | |
| parent | vvfat: use bdrv_new() to allocate BlockDriverState (diff) | |
| download | qemu-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
