Fix segfault in msix_save
commite7c3c8afcfd8bc4fb03a49653c3494f204c520de
authorMichael S. Tsirkin <mst@redhat.com>
Sun, 5 Jul 2009 12:58:23 +0000 (5 15:58 +0300)
committerAvi Kivity <avi@redhat.com>
Thu, 9 Jul 2009 10:01:14 +0000 (9 13:01 +0300)
tree6c5b556a0f78b10ac91ba34dd2c80d76781f4fd1
parent3a997fa6c813631b9e9b0b9e360500e748e28e71
Fix segfault in msix_save

This fixes segfault reported by Kevin Wolf,
and simplifies the code in msix_save.

Reported-by: Kevin Wolf <kwolf@redhat.com>
Signed-off-by: Michael S. Tsirkin <mst@redhat.com>
Signed-off-by: Avi Kivity <avi@redhat.com>
hw/msix.c