Re: [Qemu-devel] [PATCH] Added negative check for get_image_size()

2016-04-25 Thread David Gibson
On Mon, Apr 25, 2016 at 11:36:06AM -0400, Zhou Jie wrote: > This patch adds check for negative return value from get_image_size(), > where it is missing. It avoids unnecessary two function calls. > > Signed-off-by: Zhou Jie Applied to ppc-for-2.7, thanks. > --- > hw/ppc/spapr.c | 4 > 1 f

[Qemu-devel] [PATCH] Added negative check for get_image_size()

2016-04-24 Thread Zhou Jie
This patch adds check for negative return value from get_image_size(), where it is missing. It avoids unnecessary two function calls. Signed-off-by: Zhou Jie --- hw/ppc/spapr.c | 4 1 file changed, 4 insertions(+) diff --git a/hw/ppc/spapr.c b/hw/ppc/spapr.c index feaab08..ccea633 100644 -