Igor Mammedov af103c9310 vhost/scsi: call vhost_dev_cleanup() at unrealize() time
vhost-scsi calls vhost_dev_init() at realize() time
but forgets to call it's counterpart vhost_dev_cleanup()
at unrealize() time.

Calling it should fix leaking of memory table and
mem_sections table in vhost device. And also unregister
vhost's memory listerner to prevent access from
memory core to freed memory.

Signed-off-by: Igor Mammedov <imammedo@redhat.com>
Message-Id: <1438262999-287627-1-git-send-email-imammedo@redhat.com>
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
2015-07-30 15:45:07 +02:00
..
2015-07-27 18:11:53 +03:00
2015-07-20 17:47:24 +01:00
2015-07-27 18:11:53 +03:00
2015-07-13 13:35:51 +01:00
2015-07-28 17:09:56 +01:00
2015-07-27 18:11:53 +03:00
2015-07-08 10:09:55 +03:00
2015-07-28 19:02:04 +01:00
2015-06-23 19:57:28 +03:00
2015-07-14 19:10:03 +02:00
2015-07-27 14:12:18 +01:00
2015-07-22 14:56:01 -06:00
2015-07-27 18:11:53 +03:00
2015-06-23 18:25:55 +01:00