From patchwork Sat Feb 4 23:08:32 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Peter Maydell X-Patchwork-Id: 93364 Delivered-To: patches@linaro.org Received: by 10.140.20.99 with SMTP id 90csp1166098qgi; Sat, 4 Feb 2017 15:08:41 -0800 (PST) X-Received: by 10.98.94.2 with SMTP id s2mr4995227pfb.133.1486249721263; Sat, 04 Feb 2017 15:08:41 -0800 (PST) Return-Path: Received: from orth.archaic.org.uk (orth.archaic.org.uk. [2001:8b0:1d0::2]) by mx.google.com with ESMTPS id l11si29455097plk.130.2017.02.04.15.08.40 for (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Sat, 04 Feb 2017 15:08:40 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of pm215@archaic.org.uk designates 2001:8b0:1d0::2 as permitted sender) client-ip=2001:8b0:1d0::2; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of pm215@archaic.org.uk designates 2001:8b0:1d0::2 as permitted sender) smtp.mailfrom=pm215@archaic.org.uk; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: from mnementh.archaic.org.uk ([81.2.115.146]) by orth.archaic.org.uk with esmtp (Exim 4.84_2) (envelope-from ) id 1ca9Rb-0003Ut-AY; Sat, 04 Feb 2017 23:08:35 +0000 Received: from pm215 by mnementh.archaic.org.uk with local (Exim 4.84_2) (envelope-from ) id 1ca9Rb-0001RZ-9v; Sat, 04 Feb 2017 23:08:35 +0000 From: Peter Maydell To: qemu-devel@nongnu.org Cc: patches@linaro.org, Samuel Thibault , Jan Kiszka Subject: [PATCH 0/3] slirp: fix 3 easy coverity warnings Date: Sat, 4 Feb 2017 23:08:32 +0000 Message-Id: <1486249715-5513-1-git-send-email-peter.maydell@linaro.org> X-Mailer: git-send-email 2.1.4 This patchset fixes three easy-to-fix coverity warnings in the slirp code (there are another 5 or so which are not quite so simple). As usual, the preexisting tab-indent style for a lot of the slirp code is well out of line with the QEMU/checkpatch preferences. I opted to generally use QEMU style for the new lines but this does look a bit of a mess in some ways; happy to adjust per slirp maintainer preferences. thanks -- PMM Peter Maydell (3): slirp: Check qemu_socket() return value in udp_listen() slirp: Convert mbufs to use g_malloc() and g_free() slirp: tcp_listen(): Don't try to close() an fd we never opened slirp/mbuf.c | 30 ++++++++++++++---------------- slirp/socket.c | 4 +++- slirp/udp.c | 4 ++++ 3 files changed, 21 insertions(+), 17 deletions(-) -- 2.1.4