« Previous | Next » 

Revision 0e22a2d1

ID0e22a2d18998fd183c8181663981eb681ca977e9

Added by Stefan Hajnoczi almost 11 years ago

vhost-scsi: fix k->set_guest_notifiers() NULL dereference

Coverity picked up a copy-paste bug. In vhost_scsi_start() we check for
!k->set_guest_notifiers and error out. The check probably got copied
but instead of erroring we actually use the function pointer!

Cc: Nicholas Bellinger <>
Cc: Asias He <>
Cc:
Signed-off-by: Stefan Hajnoczi <>
Signed-off-by: Paolo Bonzini <>

Files

  • added
  • modified
  • copied
  • renamed
  • deleted

View differences