cpu: Fix qemu_get_cpu() to return NULL if CPU not found
Commit 55e5c2850
breaks CPU not found return value, and returns
CPU corresponding to the last non NULL env.
Fix it by returning CPU only if env is not NULL, otherwise CPU is
not found and function should return NULL.
Signed-off-by: Igor Mammedov <imammedo@redhat.com>
Signed-off-by: Andreas Färber <afaerber@suse.de>
This commit is contained in:
parent
fe3cc14fd8
commit
d76fddaeee
Loading…
Reference in New Issue
Block a user