From patchwork Mon Mar 22 12:09:42 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Klaus Jensen X-Patchwork-Id: 1456526 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Authentication-Results: ozlabs.org; spf=pass (sender SPF authorized) smtp.mailfrom=nongnu.org (client-ip=209.51.188.17; helo=lists.gnu.org; envelope-from=qemu-devel-bounces+incoming=patchwork.ozlabs.org@nongnu.org; receiver=) Authentication-Results: ozlabs.org; dkim=fail reason="signature verification failed" (2048-bit key; unprotected) header.d=irrelevant.dk header.i=@irrelevant.dk header.a=rsa-sha256 header.s=fm2 header.b=fzyy3udB; dkim=fail reason="signature verification failed" (2048-bit key; unprotected) header.d=messagingengine.com header.i=@messagingengine.com header.a=rsa-sha256 header.s=fm2 header.b=tKydVkmG; dkim-atps=neutral Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ozlabs.org (Postfix) with ESMTPS id 4F3tgB33m0z9sVS for ; Mon, 22 Mar 2021 23:12:54 +1100 (AEDT) Received: from localhost ([::1]:43876 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1lOJQQ-0007QT-L9 for incoming@patchwork.ozlabs.org; Mon, 22 Mar 2021 08:12:50 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:33340) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1lOJNc-0007N0-FF; Mon, 22 Mar 2021 08:09:56 -0400 Received: from wout3-smtp.messagingengine.com ([64.147.123.19]:35501) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1lOJNZ-0005x7-5p; Mon, 22 Mar 2021 08:09:56 -0400 Received: from compute6.internal (compute6.nyi.internal [10.202.2.46]) by mailout.west.internal (Postfix) with ESMTP id 737071678; Mon, 22 Mar 2021 08:09:50 -0400 (EDT) Received: from mailfrontend1 ([10.202.2.162]) by compute6.internal (MEProxy); Mon, 22 Mar 2021 08:09:50 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=irrelevant.dk; h=from:to:cc:subject:date:message-id:content-type:mime-version :content-transfer-encoding; s=fm2; bh=kJoMisoleu37iXxhPCHP6QH4xA bJL14cm1ZpjdGl7XU=; b=fzyy3udBWRDdBYJN9WbkAwNwiBJr3Cv4q/201cC56V 1Tp/FcFcAk27DLoGBT+vIGCA1kr5k71Yc8WC2txYBKlBi/eP3x/zasRWs6l1v4nQ d1e1Btqnd2l9wMMkJMM5utDTvMzk7Mash0kya9W9hCfHG8zwK9TCC7vkGlYpnaZB CAsZMfoHaVC0nd6j039ZURL/pJfQ+IGKUsvyIEWnHIybI74rN7a+EYitWiYnFQIH WPo3kmrwxIAW5dcb56R+vCCGqrZWwSnL3B0A4S/Ke5l71f75k4iLDFOmEmfvR+u/ ibmTduS9c49fg5t2ACiK/Ua9VwTZA4zWyYC3Ft/rMybg== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=cc:content-transfer-encoding:content-type :date:from:message-id:mime-version:subject:to:x-me-proxy :x-me-proxy:x-me-sender:x-me-sender:x-sasl-enc; s=fm2; bh=kJoMis oleu37iXxhPCHP6QH4xAbJL14cm1ZpjdGl7XU=; b=tKydVkmGYZDLr3gX0IRU9x 2yQYXSHYa0KSQLMQ56XLcMPBHoORjLFtN63fEq3lQUzoArFG3AC2zVj3/KRM6Rb/ qpmB9SAZ2Yj6GQWdvvJvtaxm82RXcxJxRDwaT5tdGPm/I2CyM341zFNPq+MltZDT jm9d4GHfDSZJgYn4YvKDxApD2RX9xkrho0enNtcJhLsxltMlNxKOnAdi3MWqYdA8 EiY8gyOYA/QbdgWw+eXeXlyd1Bg6HauUeUVBmmCzSV8x8XFZ4N9C8mY2vHUUYipe +k533jK8fH/EXoH5xV64Eaj1iGVaZ1exC+b5jE5qLHhp5JCM1AwPCcnWqhrcshDA == X-ME-Sender: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgeduledrudeggedgfeehucetufdoteggodetrfdotf fvucfrrhhofhhilhgvmecuhfgrshhtofgrihhlpdfqfgfvpdfurfetoffkrfgpnffqhgen uceurghilhhouhhtmecufedttdenucesvcftvggtihhpihgvnhhtshculddquddttddmne cujfgurhephffvufffkffotggggfesthhqredtredtjeenucfhrhhomhepmfhlrghushcu lfgvnhhsvghnuceoihhtshesihhrrhgvlhgvvhgrnhhtrdgukheqnecuggftrfgrthhtvg hrnhephfegveekiefgkeevvdetjeejkeekudfgvdehieejfffgkeffvdevlefftedvgefh necukfhppeektddrudeijedrleekrdduledtnecuvehluhhsthgvrhfuihiivgeptdenuc frrghrrghmpehmrghilhhfrhhomhepihhtshesihhrrhgvlhgvvhgrnhhtrdgukh X-ME-Proxy: Received: from apples.local (80-167-98-190-cable.dk.customer.tdc.net [80.167.98.190]) by mail.messagingengine.com (Postfix) with ESMTPA id 769C324041D; Mon, 22 Mar 2021 08:09:47 -0400 (EDT) From: Klaus Jensen To: qemu-devel@nongnu.org Subject: [PATCH v2 0/2] hw/block/nvme: coverity fixes Date: Mon, 22 Mar 2021 13:09:42 +0100 Message-Id: <20210322120944.225643-1-its@irrelevant.dk> X-Mailer: git-send-email 2.31.0 MIME-Version: 1.0 Received-SPF: pass client-ip=64.147.123.19; envelope-from=its@irrelevant.dk; helo=wout3-smtp.messagingengine.com X-Spam_score_int: -27 X-Spam_score: -2.8 X-Spam_bar: -- X-Spam_report: (-2.8 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, RCVD_IN_DNSWL_LOW=-0.7, SPF_HELO_PASS=-0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-BeenThere: qemu-devel@nongnu.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: Kevin Wolf , qemu-block@nongnu.org, Klaus Jensen , Max Reitz , Klaus Jensen , Keith Busch Errors-To: qemu-devel-bounces+incoming=patchwork.ozlabs.org@nongnu.org Sender: "Qemu-devel" From: Klaus Jensen Fix two issues reported by coverity (CID 1451080 and 1451082). v2: - replace [2/2] with a fix for the bad reference counting noticed by Max Klaus Jensen (2): hw/block/nvme: fix resource leak in nvme_dif_rw hw/block/nvme: fix ref counting in nvme_format_ns hw/block/nvme-dif.c | 2 +- hw/block/nvme.c | 10 ++++++++-- 2 files changed, 9 insertions(+), 3 deletions(-)