OSDN Git Service

vvfat: use bdrv_new() to allocate BlockDriverState
authorFam Zheng <famz@redhat.com>
Fri, 23 Aug 2013 01:14:44 +0000 (09:14 +0800)
committerStefan Hajnoczi <stefanha@redhat.com>
Fri, 6 Sep 2013 13:25:08 +0000 (15:25 +0200)
commit3d34c6cd99f434126365150c2535bbf93b94f891
tree6bde179bc257c58f988096dd1cb8a85803fd7bf6
parenta94a3fac19c37c093203e9e01c3a54e92e1dc701
vvfat: use bdrv_new() to allocate BlockDriverState

we need bdrv_new() to properly initialize BDS, don't allocate memory
manually.

Signed-off-by: Fam Zheng <famz@redhat.com>
Signed-off-by: Stefan Hajnoczi <stefanha@redhat.com>
block/vvfat.c