Kevin Wolf 5fbf1d56c2 iscsi: Don't access non-existent scsi_lba_status_descriptor
In iscsi_co_block_status(), we may have received num_descriptors == 0
from the iscsi server. Therefore, we can't unconditionally access
lbas->descriptors[0]. Add the missing check.

Signed-off-by: Kevin Wolf <kwolf@redhat.com>
Reviewed-by: Felipe Franciosi <felipe@nutanix.com>
Reviewed-by: Philippe Mathieu-Daudé <philmd@redhat.com>
Reviewed-by: John Snow <jsnow@redhat.com>
Reviewed-by: Peter Lieven <pl@kamp.de>
2020-01-27 17:19:53 +01:00
..
2019-10-10 10:56:17 +02:00
2019-09-16 14:48:30 +02:00
2019-09-16 14:48:30 +02:00
2019-10-28 12:05:30 +01:00
2019-09-16 14:48:30 +02:00
2019-11-04 09:32:51 +01:00
2019-10-28 11:34:35 +01:00
2019-10-28 14:40:01 +00:00
2018-02-09 05:05:11 +01:00
2019-09-10 08:58:43 +02:00
2019-09-16 14:48:30 +02:00