Received: by 2002:ad5:474a:0:0:0:0:0 with SMTP id i10csp1861116imu; Tue, 6 Nov 2018 05:34:51 -0800 (PST) X-Google-Smtp-Source: AJdET5dFxH4MObqW7Encjk3tBv6nQ0bcuc87Jt50F3XGdHg3OY12QyTiAJMIZH6MACO9hWWliuWf X-Received: by 2002:a62:ca4d:: with SMTP id n74-v6mr25726075pfg.10.1541511291586; Tue, 06 Nov 2018 05:34:51 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1541511291; cv=none; d=google.com; s=arc-20160816; b=It8rxTGpT6YA+5fmux9ot7Cb6EqFww2bYeem2hxnYeT3CpCWexNnVx41srgwOSCnJW G1HCEHExq432UW6veOYkXIKOR+FMpUNiA8uW42ayBcnFQ3qbuCJGMXWYJaMr3oLQJybw TV+lF7KTfJPIV1FKBB/+L0FIjW6jQQqHx/uqYG4s0RfWYctDmUKeUfm4cU7PvgslBLh8 WPqhbeue3iLx3/vnK6dOqu+vNPzUhXN/1G+JXIFwjz1wWa4xCqB6AzakSwns5xukV2Iy FwTP6/Hlk+6LOmBmeu3MM3ojklbQO3gbA44sC3k3yhSH2d2B6CgHl4sj+CV4XJ8zDxCV o44w== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:references:in-reply-to:message-id:date :subject:cc:to:from:dkim-signature; bh=gL8Qq0VcYDDfyeqaS1taQ6NLTbooICca+pVmxUz1Mwk=; b=dclmUgi1wg6QkP34Vq5uQmXw/OiCH2Sdq/K5txirgD1FlHeE9KHqH0M+JpA/dq+7XU fM/Xx8dqxmoD1gtm7YGr6TwvxUgqCIcvfClYU0rVh8qhY9ZkTZsB9A33sgh4VhRTG7Pj crxkqDJ1Lkbcy0hdj29pi/cxIydeCoNQNqEgicBUYeOJXlcGx3hE8IF1bB3d0nR9RP9m 7G9l4Knit9f0X+OE9uvwyAfSF0O25l2XJ2BmbKbrDltKxdd56FOKUoYhVzlSQf3SEXSo zoJa8x/9XbyALHheFCyisf1uzWmvr99120kK6cn/gWH3dVblqx9DBNR4lknyNfRDZett fsfw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@owltronix-com.20150623.gappssmtp.com header.s=20150623 header.b=lgRahNFT; 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 q129-v6si45645731pga.96.2018.11.06.05.34.36; Tue, 06 Nov 2018 05:34:51 -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=@owltronix-com.20150623.gappssmtp.com header.s=20150623 header.b=lgRahNFT; 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 S2388443AbeKFW7H (ORCPT + 99 others); Tue, 6 Nov 2018 17:59:07 -0500 Received: from mail-it1-f193.google.com ([209.85.166.193]:37523 "EHLO mail-it1-f193.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S2388419AbeKFW7G (ORCPT ); Tue, 6 Nov 2018 17:59:06 -0500 Received: by mail-it1-f193.google.com with SMTP id j79-v6so5640421itb.2 for ; Tue, 06 Nov 2018 05:33:51 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=owltronix-com.20150623.gappssmtp.com; s=20150623; h=from:to:cc:subject:date:message-id:in-reply-to:references; bh=gL8Qq0VcYDDfyeqaS1taQ6NLTbooICca+pVmxUz1Mwk=; b=lgRahNFTqvHcWN3GqBAzJEm3bTa9ZHnOoY+UG+kPmA2Hs5tTh4BMGGmM8i0kEjUgIO Hlr7Cs0ayZQ4S5K5MMB7mXHbjXHxU/31WTJmd4nrgRCWXC+1MG5PG5MCh5xBO2zroyXD N4TvHuH3Q5irbZefgTJN/vG9+5Y8OzTfn1GWjLXA4FP50a2l3TFzJQEKtE+rQHEgS9/I ZFOo/AfDmbr9Wq1D0JPc558rnE+oyNuGtLLdwwfF7Ca9VK5+A4OJjSeTqxRVlm2Y2gDh PUwIK/DT5vbRsHs2Y80QfN0l8JU2Nf3hvyz8phw5GAU+eJXhql7TJGb4rzzSP1OLQRyF IEdQ== 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; bh=gL8Qq0VcYDDfyeqaS1taQ6NLTbooICca+pVmxUz1Mwk=; b=Xw5T9dXiYrhfRGs1MgFxBumcNzcGU0uJU835MdhZzMUVPRotVMNXbtOCkxLdfzrC1v foOnnJpRnTSYzQpyapKX+c1O/dH7t4rWWeiY0yxQzM5cW8CqoOWm0/m/ABbwHh7Czlx2 Qu6r7QLa23YvOFOXuu6sXiw87ePqyQuo6pe6C2F3b2rnzHutPoW8mExNZTJenq0ZwPMS XOUrH8M3HTbClcMtzhD0KJGvh3kUNP0oJKH/KtBseeuDQw0dA+BL76gspFHICIRRgD64 GbBzGW35H/Kt5Rxz+dpMXO6jxGOGCtO8PLPlOcCoPAdBIPfXtxlCh+BgvcdPpjczOmlE hJRQ== X-Gm-Message-State: AGRZ1gJjrqSSMKBiDB/eCG40kGtLuFvCawIX1IT+BZ+orJ8euTORLX/O Qg25YDTVCCFJZ8RjZYCGXZE4hQ== X-Received: by 2002:a02:8a74:: with SMTP id e49-v6mr24954950jal.81.1541511229274; Tue, 06 Nov 2018 05:33:49 -0800 (PST) Received: from ch-lap-hans.cnexlabs.com (6164211-cl69.boa.fiberby.dk. [193.106.164.211]) by smtp.gmail.com with ESMTPSA id u132-v6sm897282itb.21.2018.11.06.05.33.47 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Tue, 06 Nov 2018 05:33:48 -0800 (PST) From: Hans Holmberg To: Matias Bjorling Cc: Javier Gonzales , Sebastien Boisvert , linux-block@vger.kernel.org, linux-kernel@vger.kernel.org, Hans Holmberg Subject: [PATCH v3 6/7] lightnvm: pblk: fix pblk_lines_init error handling path Date: Tue, 6 Nov 2018 14:33:29 +0100 Message-Id: <20181106133330.26570-7-hans.ml.holmberg@owltronix.com> X-Mailer: git-send-email 2.17.1 In-Reply-To: <20181106133330.26570-1-hans.ml.holmberg@owltronix.com> References: <20181106133330.26570-1-hans.ml.holmberg@owltronix.com> Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: Hans Holmberg The chunk metadata is allocated with vmalloc, so we need to use vfree to free it. Fixes: 090ee26fd512 ("lightnvm: use internal allocation for chunk log page") Signed-off-by: Hans Holmberg --- drivers/lightnvm/pblk-init.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/lightnvm/pblk-init.c b/drivers/lightnvm/pblk-init.c index 3219f335fce9..0e37104de596 100644 --- a/drivers/lightnvm/pblk-init.c +++ b/drivers/lightnvm/pblk-init.c @@ -1060,7 +1060,7 @@ static int pblk_lines_init(struct pblk *pblk) pblk_line_meta_free(l_mg, &pblk->lines[i]); kfree(pblk->lines); fail_free_chunk_meta: - kfree(chunk_meta); + vfree(chunk_meta); fail_free_luns: kfree(pblk->luns); fail_free_meta: -- 2.17.1