On Fri, Dec 22, 2017 at 04:55:22PM +0100, Paolo Bonzini wrote: > 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 <rka...@virtuozzo.com> > Signed-off-by: Paolo Bonzini <pbonz...@redhat.com> > --- > scsi/utils.c | 12 ++++++------ > 1 file changed, 6 insertions(+), 6 deletions(-)
Tested-by: Roman Kagan <rka...@virtuozzo.com>