From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([2001:4830:134:3::10]:39170) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1f0Ngd-0005Bm-1H for qemu-devel@nongnu.org; Mon, 26 Mar 2018 04:41:06 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1f0NgX-0001Th-DX for qemu-devel@nongnu.org; Mon, 26 Mar 2018 04:41:03 -0400 References: <20180322161226.29796-1-lvivier@redhat.com> <20180322161226.29796-3-lvivier@redhat.com> <51925b27-09cc-1c3e-674c-d80b423f92c8@redhat.com> From: Laurent Vivier Message-ID: <0fb14423-fc9d-3dd9-c63e-45fc3c0d6797@redhat.com> Date: Mon, 26 Mar 2018 10:40:42 +0200 MIME-Version: 1.0 In-Reply-To: <51925b27-09cc-1c3e-674c-d80b423f92c8@redhat.com> Content-Type: text/plain; charset=utf-8 Content-Language: en-US Content-Transfer-Encoding: quoted-printable Subject: Re: [Qemu-devel] [PATCH 2/4] error: Remove NULL checks on error_propagate() calls List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Eric Blake , qemu-devel@nongnu.org Cc: Peter Crosthwaite , "=?UTF-8?Q?Daniel_P._Berrang=c3=a9?=" , "Dr. David Alan Gilbert" , Paolo Bonzini , David Gibson , Kevin Wolf , Richard Henderson , qemu-arm@nongnu.org, Jason Wang , Max Reitz , Fam Zheng , qemu-trivial@nongnu.org, Alexander Graf , qemu-ppc@nongnu.org, Peter Maydell , Alberto Garcia , qemu-block@nongnu.org, Igor Mitsyanko , Yongbok Kim , "Michael S. Tsirkin" , Aurelien Jarno , Eduardo Habkost , Max Filippov , Markus Armbruster On 23/03/2018 21:50, Eric Blake wrote: > On 03/22/2018 11:12 AM, Laurent Vivier wrote: >> Re-run Coccinelle patch >> scripts/coccinelle/error_propagate_null.cocci >> >> Signed-off-by: Laurent Vivier >> --- >> =C2=A0 io/channel-websock.c | 4 +--- >> =C2=A0 1 file changed, 1 insertion(+), 3 deletions(-) >> >=20 > Misses an offender in numa.c, why? >=20 > https://lists.gnu.org/archive/html/qemu-devel/2018-03/msg06382.html >=20 No, error_report_err() doesn't check if err is NULL, we must check before calling it. Thanks, Laurent