Initialize it appropriately when various commands are processed. Signed-off-by: Igor Mitsyanko <[email protected]> --- hw/sd/sd.c | 1 + 1 file changed, 1 insertion(+)
diff --git a/hw/sd/sd.c b/hw/sd/sd.c
index 1dd1331..775a55c 100644
--- a/hw/sd/sd.c
+++ b/hw/sd/sd.c
@@ -116,6 +116,7 @@ struct SDState {
QEMUIOVector qiov;
struct iovec iov;
BlockDriverAIOCB *aiocb;
+ uint32_t transf_cnt;
};
static void sd_set_mode(SDState *sd)
--
1.8.1.4
