commit | 13c91cb7e28b47f5c4227f7e88a1378570117704 | [log] [tgz] |
---|---|---|
author | Fam Zheng <famz@redhat.com> | Fri Aug 23 09:14:45 2013 +0800 |
committer | Stefan Hajnoczi <stefanha@redhat.com> | Fri Sep 06 15:25:08 2013 +0200 |
tree | 9029cb1b1bbaa97a0b23ec89a89d8a2c4694fe1a | |
parent | 3d34c6cd99f434126365150c2535bbf93b94f891 [diff] |
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>