diff options
author | Kevin Wolf | 2012-04-18 16:18:14 +0200 |
---|---|---|
committer | Kevin Wolf | 2012-04-19 16:03:27 +0200 |
commit | 8dc0a5e7a06c059683f9c379c0a4b0bbc20d5c74 (patch) | |
tree | cb346bf3bedf39c1ad707a13e34da40f831a7569 /cmd.c | |
parent | ide: convert ide_sector_write() to asynchronous I/O (diff) | |
download | qemu-8dc0a5e7a06c059683f9c379c0a4b0bbc20d5c74.tar.gz qemu-8dc0a5e7a06c059683f9c379c0a4b0bbc20d5c74.tar.xz qemu-8dc0a5e7a06c059683f9c379c0a4b0bbc20d5c74.zip |
qcow2: Fix error handling in qcow2_alloc_cluster_offset
If do_alloc_cluster_offset() fails, the error handling code tried to
remove the request from the in-flight queue, to which it wasn't added
yet, resulting in a NULL pointer dereference.
m->nb_clusters really only becomes != 0 when the request is in the list.
Signed-off-by: Kevin Wolf <kwolf@redhat.com>
Diffstat (limited to 'cmd.c')
0 files changed, 0 insertions, 0 deletions