Received: by 2002:ac0:946b:0:0:0:0:0 with SMTP id j40csp2526353imj; Mon, 11 Feb 2019 04:26:54 -0800 (PST) X-Google-Smtp-Source: AHgI3IbfIIyDpg3W3h/F/7O7A5wb4wQEu589tj/jSRwMQqGvYRnQM6/8EAOzonjh/qnD9euC5gM7 X-Received: by 2002:a62:3a47:: with SMTP id h68mr9370582pfa.202.1549888014617; Mon, 11 Feb 2019 04:26:54 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1549888014; cv=none; d=google.com; s=arc-20160816; b=iHYtSqe0aAUKdQCqcq37Uxt0loUOHPLKJXV9ytnzbUS7IB8mY0SngM1vc23KXsRusc K6beepmjnCFkaNR96ZHunLMlumfSosBhwn4w/QfRfstf7sXAU0v8IrYENKIg9vQ2y6nY +kpPQqYUmFe0L06nnnZLbDJgiHUtqQECqLMbJs1dRg1rFHyeVIJr11VLBw0c8mM3NoV/ PuT7QQbOPuqMiavvPu+6C7+HY97pLzf0x/uVimSJ7iY6CnUFCk6WB/GZi4yi6McPmkHe b+N/aD9/6WCQm02kk8/ctZ+fAHaZBsZjhVyAIBPeG96O7S4xRiSr8koU2VgEXPcBgtYZ MpAQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature; bh=aPqNfQfc1x7Ctx+Hrva5vIaSgQJbQvQq7LNoEgp6zBs=; b=Tw0OTnsWZATAjDiKZmBqXhZwfkN4zOVr6TE2tfRnDZBXliOig/V9Rskg2SXA4AoOu8 JxMriWt+rvrYlKBCk7Sz0DdySENJ4nlZJtQ9v/8KDma15HqdDBHXERPB72gtfT9i/63A 6A44QgW7tTw1LIf1Ey0xKljuQpkuePuGO+10UhQw7wmSFaqZgUNzIlGwyismhzhpfq5d Jg7m/rW7R/Ye3vjYkMrO6DIpn5nmZlqtvv4f+mO+KSrCBfASyy1lJ4/m+4tW+4uzHYHL lLbWqfy2tcRL+/wkCcaiDL3bk2lxkTX9SIUyZ0bbKeB8b/V+KGfXr2VIDQmo80XmAJKE qQdA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@lightnvm-io.20150623.gappssmtp.com header.s=20150623 header.b=XTK1ndTu; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id o8si9820693plk.28.2019.02.11.04.26.38; Mon, 11 Feb 2019 04:26:54 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@lightnvm-io.20150623.gappssmtp.com header.s=20150623 header.b=XTK1ndTu; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727457AbfBKM0E (ORCPT + 99 others); Mon, 11 Feb 2019 07:26:04 -0500 Received: from mail-lj1-f195.google.com ([209.85.208.195]:40276 "EHLO mail-lj1-f195.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727090AbfBKMZU (ORCPT ); Mon, 11 Feb 2019 07:25:20 -0500 Received: by mail-lj1-f195.google.com with SMTP id z25-v6so8550318ljk.7 for ; Mon, 11 Feb 2019 04:25:19 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=lightnvm-io.20150623.gappssmtp.com; s=20150623; h=from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=aPqNfQfc1x7Ctx+Hrva5vIaSgQJbQvQq7LNoEgp6zBs=; b=XTK1ndTuzO9MANc3qb+2im7yByKWCMX3ge+mWO5pzGVkpwprpwSmohjsTEEW5kMDap BrsU6SCHss4pStE9FLL9oHQ7JUmlETI6aY0a3M7PkbU5wK7IRs73ZDVvX/p1Hv7s5/7/ URcpggj/hOfyFmBaZH5441VUsLGWAOOQXiqib8jfDgO6wtmM2V9buvp+QJzR0xbTxXn6 YwG6adZcCv+NXzPvtzREyVSlstQrXRavPjkOojgkimCiC9/lRU1oEEkkZsnu3feyncoX Vm/ukWS9PpJIuFH2BPqnUowRyHZw4XYix5ac1SOo8XDQLO0Bn/9A5OiGPaeoTDpv98mV 6emw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references:mime-version:content-transfer-encoding; bh=aPqNfQfc1x7Ctx+Hrva5vIaSgQJbQvQq7LNoEgp6zBs=; b=KhIFjjDOg+BBaTZBTxGTHAoax1mJ04BhJbvOrMaOICb2U5pn61F+PHn5GfbVXYxqf7 U+b/faN2nd8On9uSumDYY/RgEvf0Rk8VEQCL+51NSiyUeVMFOMBC/HF7Q3amfzRnDa6Y /BQWQqOdKSKaDSxmYcAI97gPfS5NqCsdJfodyFvizTAluE9bMCvQMqFfmr/mQrkk2wXi yjSgC6JSmjpirTVZLsrhxi4Kk4zMGFmBvzdQQUQlvnzwrQuEzf+1TQ/G+Fh/7a0wR4Uh RQQbWAdPF2rlJg1HogFssQvMgWhBLTzzRM67jcTX0uJJLIHU1uZCNvzOeQL7KaPDSC3P n0DQ== X-Gm-Message-State: AHQUAuai77sdxk5pgfsi0YmPrY9dfonucbAHld9hk7qPAAZia+/oonVS 8AVzvwnF/h2pTVTLPBtnnfWGwA== X-Received: by 2002:a2e:3603:: with SMTP id d3-v6mr21153964lja.46.1549887918637; Mon, 11 Feb 2019 04:25:18 -0800 (PST) Received: from skyninja.webspeed.dk (2-111-91-225-cable.dk.customer.tdc.net. [2.111.91.225]) by smtp.gmail.com with ESMTPSA id d70sm2278481lfe.14.2019.02.11.04.25.17 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Mon, 11 Feb 2019 04:25:17 -0800 (PST) From: =?UTF-8?q?Matias=20Bj=C3=B8rling?= To: axboe@fb.com Cc: linux-block@vger.kernel.org, linux-kernel@vger.kernel.org, Hans Holmberg , =?UTF-8?q?Matias=20Bj=C3=B8rling?= Subject: [GIT PULL 2/8] lightnvm: pblk: use vfree to free metadata on error path Date: Mon, 11 Feb 2019 13:25:03 +0100 Message-Id: <20190211122509.19910-3-mb@lightnvm.io> X-Mailer: git-send-email 2.19.1 In-Reply-To: <20190211122509.19910-1-mb@lightnvm.io> References: <20190211122509.19910-1-mb@lightnvm.io> MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: Hans Holmberg As chunk metadata is allocated using vmalloc, we need to free it using vfree. Fixes: 090ee26fd512 ("lightnvm: use internal allocation for chunk log page") Signed-off-by: Hans Holmberg Signed-off-by: Matias Bjørling --- drivers/lightnvm/pblk-core.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/lightnvm/pblk-core.c b/drivers/lightnvm/pblk-core.c index 1ff165351180..1b5ff51faa63 100644 --- a/drivers/lightnvm/pblk-core.c +++ b/drivers/lightnvm/pblk-core.c @@ -141,7 +141,7 @@ struct nvm_chk_meta *pblk_get_chunk_meta(struct pblk *pblk) ret = nvm_get_chunk_meta(dev, ppa, geo->all_chunks, meta); if (ret) { - kfree(meta); + vfree(meta); return ERR_PTR(-EIO); } -- 2.19.1