Paolo Bonzini 31e8fd86f2 scsi: fix refcounting for reads
Recently introduced FUA support also gave us a use-after-free
of the BlockAcctCookie within a SCSIDiskReq, due to unbalanced
reference counting.

The patch fixes this by making scsi_do_read look like a combination
of scsi_*_complete + scsi_*_data.  It does both a ref (like
scsi_read_data) and an unref (like scsi_flush_complete).

Reported-by: David Gibson <david@gibson.dropbear.id.au>
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
2012-05-04 10:39:52 +02:00
2012-04-25 21:04:57 +04:00
2012-04-13 09:57:36 +01:00
2012-05-01 00:17:27 +02:00
2012-05-02 18:39:39 +02:00
2012-05-04 10:39:52 +02:00
2012-04-12 19:01:42 -03:00
2012-05-01 19:08:44 -03:00
2012-05-01 10:58:04 +00:00
2012-04-17 10:51:41 +02:00
2012-04-26 13:14:58 -05:00
2012-04-19 18:52:48 +00:00
2012-04-07 14:00:45 +00:00
2012-04-19 16:51:47 +02:00
2012-04-27 11:44:50 -03:00
2012-04-19 16:29:33 +02:00
2012-05-01 10:45:02 +00:00
2012-04-15 21:25:16 +02:00
2012-03-30 08:14:11 -05:00
2012-04-01 20:30:23 +02:00
2012-04-09 14:35:25 -03:00
2012-04-12 19:01:41 -03:00
2012-04-12 19:01:41 -03:00
2012-04-26 13:14:58 -05:00
2012-04-19 17:19:37 +02:00
2012-04-26 13:14:58 -05:00
2012-04-07 14:00:45 +00:00
2012-05-01 00:17:27 +02:00
2012-04-19 16:29:33 +02:00
2012-04-19 17:19:37 +02:00
2012-04-15 21:25:16 +02:00
2012-04-07 14:00:45 +00:00
2012-05-01 00:17:27 +02:00
2012-04-26 13:14:58 -05:00
2012-04-05 14:54:40 +02:00
2012-04-05 14:54:40 +02:00
2009-11-17 08:49:38 -06:00
2012-04-24 09:50:31 -05:00
2012-05-02 07:32:09 -05:00

Read the documentation in qemu-doc.html or on http://wiki.qemu.org

- QEMU team
Description
QEMU With E2K User Support
Readme 459 MiB
Languages
C 83.1%
C++ 6.3%
Python 3.2%
Dylan 2.8%
Shell 1.6%
Other 2.8%