[Qemu-devel] [PATCH] fix qemu_get_cpu(), should return NULL if CPU not found

2013-03-07 Thread Igor Mammedov
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 --- exec.c | 2 +- 1 file changed, 1 insertion(+),

Re: [Qemu-devel] [PATCH] fix qemu_get_cpu(), should return NULL if CPU not found

2013-03-12 Thread Andreas Färber
Am 07.03.2013 19:12, schrieb Igor Mammedov: > 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 Mamme