qemu-trivial
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Qemu-trivial] [Qemu-devel] [PATCH] kvm: Fix warning from static cod


From: Stefan Hajnoczi
Subject: Re: [Qemu-trivial] [Qemu-devel] [PATCH] kvm: Fix warning from static code analysis
Date: Wed, 5 Sep 2012 10:36:27 +0100
User-agent: Mutt/1.5.21 (2010-09-15)

On Mon, Sep 03, 2012 at 10:40:40PM +0200, Stefan Weil wrote:
> Report from smatch:
> 
> kvm-all.c:1373 kvm_init(135) warn:
>  variable dereferenced before check 's' (see line 1360)
> 
> 's' cannot by NULL (it was alloced using g_malloc0), so there is no need
> to check it here.
> 
> Signed-off-by: Stefan Weil <address@hidden>
> ---
>  kvm-all.c |   12 +++++-------
>  1 file changed, 5 insertions(+), 7 deletions(-)

Thanks, applied to the trivial patches tree:
https://github.com/stefanha/qemu/commits/trivial-patches

Stefan



reply via email to

[Prev in Thread] Current Thread [Next in Thread]