diff options
author | Frediano Ziglio <freddy77@gmail.com> | 2011-09-08 13:38:42 +0200 |
---|---|---|
committer | Kevin Wolf <kwolf@redhat.com> | 2011-09-12 15:17:22 +0200 |
commit | 05140499d38154df942048109ad78421ae3fd43a (patch) | |
tree | f76e5af02856e2573a9c797777e32589e471f8dd /hw/ide/ahci.c | |
parent | 25ad22bc4e9c946df694fa7343027b1050b2946b (diff) |
qcow2: initialize metadata before inserting in cluster_allocs
QCow2Meta structure was inserted into list before many fields are
initialized. Currently is not a problem cause all occur in a lock
but if qcow2_alloc_clusters would in a future unlock this lock
some issues could arise.
Initializing fields before inserting fix the problem.
Signed-off-by: Frediano Ziglio <freddy77@gmail.com>
Signed-off-by: Kevin Wolf <kwolf@redhat.com>
Diffstat (limited to 'hw/ide/ahci.c')
0 files changed, 0 insertions, 0 deletions