]> xenbits.xensource.com Git - qemu-xen-4.1-testing.git/commit
passthrough: Fix no_wb not to crash on unknown registers
authorIan Jackson <ian.jackson@eu.citrix.com>
Mon, 7 Dec 2009 12:25:54 +0000 (12:25 +0000)
committerIan Jackson <Ian.Jackson@eu.citrix.com>
Mon, 7 Dec 2009 12:25:54 +0000 (12:25 +0000)
commit9297e6402f6aa1b52e5577edc875eb2d2163baeb
treeb36c9cd979c56928b5907da08f7c73bae76344c4
parent91ae19a7cc445030614bd0ae91548162cf0befbe
passthrough: Fix no_wb not to crash on unknown registers

e2b98415256cb264bc25e6df539ec0dc9d1b85b0 broke things sometimes:

 If pt_find_reg_grp() fails and returns NULL, it will jump to out:,
 but at this time reg is still NULL (pt_find_reg() is not reached)
 which leads to a NULL dereference.

This patch fixes it.

Submitted-By: Qing He <qing.he@intel.com>
Signed-off-by: Ian Jackson <ian.jackson@eu.citrix.com>
hw/pass-through.c