Li Qiang
4773a5f35b
hw: megasas: consider 'iov_count=0' is an error in megasas_map_sgl
...
Currently in 'megasas_map_sgl' when 'iov_count=0' will just return
success however the 'cmd' doens't contain any iov. This will cause
the assert in 'scsi_dma_complete' failed. This is because in
'dma_blk_cb' the 'dbs->sg_cur_index == dbs->sg->nsg' will be true
and just call 'dma_complete'. However now there is no aiocb returned.
This fixes the LP#1878263:
-->https://bugs.launchpad.net/qemu/+bug/1878263
Reported-by: Alexander Bulekov <alxndr@bu.edu>
Signed-off-by: Li Qiang <liq3ea@163.com>
Message-Id: <20200815141940.44025-3-liq3ea@163.com>
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
2020-09-30 19:09:20 +02:00
..
2020-09-18 14:12:32 -04:00
2020-09-29 15:41:36 +02:00
2020-08-21 06:30:32 -04:00
2020-09-25 16:52:08 -07:00
2020-09-25 16:52:08 -07:00
2020-09-18 14:12:32 -04:00
2020-09-09 09:27:09 -04:00
2020-09-29 02:14:29 -04:00
2020-09-30 19:09:20 +02:00
2020-09-30 19:09:20 +02:00
2020-09-22 16:48:29 -04:00
2020-09-25 16:52:08 -07:00
2020-09-29 10:08:25 +02:00
2020-09-18 14:12:32 -04:00
2020-09-22 15:42:23 +01:00
2020-09-18 14:12:32 -04:00
2020-09-23 16:07:44 +01:00
2020-09-18 14:12:32 -04:00
2020-09-30 19:09:20 +02:00
2020-09-18 14:12:32 -04:00
2020-09-18 14:12:32 -04:00
2020-09-23 16:07:44 +01:00
2020-09-18 14:12:32 -04:00
2020-09-18 14:12:32 -04:00
2020-09-29 02:15:24 -04:00
2020-08-21 16:22:43 +02:00
2020-09-18 14:12:32 -04:00
2020-09-14 14:24:59 +01:00
2020-09-25 16:52:08 -07:00
2020-09-30 19:09:20 +02:00
2020-09-24 18:48:45 +01:00
2020-09-25 16:52:08 -07:00
2020-09-23 16:07:44 +01:00
2020-09-25 16:52:08 -07:00
2020-08-21 06:30:25 -04:00
2020-09-18 14:12:32 -04:00
2020-08-21 06:30:33 -04:00
2020-09-29 15:41:36 +02:00
2020-09-18 14:12:32 -04:00
2020-09-22 16:48:29 -04:00
2020-08-27 14:04:55 -04:00
2020-09-30 19:09:20 +02:00
2020-09-23 16:07:44 +01:00
2020-09-25 16:52:08 -07:00
2020-09-18 14:12:32 -04:00
2020-09-09 09:27:09 -04:00
2020-09-29 02:15:24 -04:00
2020-09-30 19:09:20 +02:00
2020-09-18 14:12:32 -04:00
2020-08-21 06:30:25 -04:00
2020-09-18 14:12:32 -04:00
2020-09-29 02:15:24 -04:00
2020-09-18 14:12:32 -04:00
2020-09-18 14:12:32 -04:00
2020-09-18 14:12:32 -04:00
2020-09-22 15:42:23 +01:00
2020-09-18 14:12:32 -04:00
2020-08-21 06:30:33 -04:00
2020-08-21 06:30:33 -04:00
2020-09-28 13:13:58 +02:00
2020-09-18 14:12:32 -04:00
2020-09-29 15:41:36 +02:00
2020-09-18 14:12:32 -04:00
2020-09-18 14:12:32 -04:00
2020-08-21 06:30:33 -04:00
2020-09-25 16:52:08 -07:00
2020-07-11 11:02:05 +02:00
2020-08-21 06:30:33 -04:00