diff options
author | Paolo Bonzini <pbonzini@redhat.com> | 2017-12-22 16:30:34 +0100 |
---|---|---|
committer | Paolo Bonzini <pbonzini@redhat.com> | 2018-01-12 09:54:13 +0100 |
commit | 2770c90d432b571cab718e28f838097f0b2201ec (patch) | |
tree | ebf68e86e1b04e5ab79d4e0dfa0b2b5f40933d21 /hw/i386 | |
parent | d9bcd6f7f23a13ea627d8edb85c0706525da0b75 (diff) |
scsi: fix scsi_convert_sense crash when in_buf == NULL && in_len == 0
scsi_disk_emulate_command passes in_buf == NULL when sent a REQUEST
SENSE command. Check for in_len == 0 before dereferencing in_buf.
Fixes: f68d98b21fa74155dc7c1fd212474379ac3c7531
Reported-by: Roman Kagan <rkagan@virtuozzo.com>
Tested-by: Roman Kagan <rkagan@virtuozzo.com>
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
Diffstat (limited to 'hw/i386')
0 files changed, 0 insertions, 0 deletions