Message ID | 20181106133330.26570-7-hans.ml.holmberg@owltronix.com (mailing list archive) |
---|---|
State | New, archived |
Headers | show
Return-Path: <linux-block-owner@kernel.org> Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork-2.web.codeaurora.org (Postfix) with ESMTP id 8F7DD13A4 for <patchwork-linux-block@patchwork.kernel.org>; Tue, 6 Nov 2018 13:33:52 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 802FD2A3CE for <patchwork-linux-block@patchwork.kernel.org>; Tue, 6 Nov 2018 13:33:52 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 74B522A3D4; Tue, 6 Nov 2018 13:33:52 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-7.9 required=2.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,MAILING_LIST_MULTI,RCVD_IN_DNSWL_HI autolearn=ham version=3.3.1 Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 2BB212A3CE for <patchwork-linux-block@patchwork.kernel.org>; Tue, 6 Nov 2018 13:33:52 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S2388399AbeKFW7F (ORCPT <rfc822;patchwork-linux-block@patchwork.kernel.org>); Tue, 6 Nov 2018 17:59:05 -0500 Received: from mail-it1-f194.google.com ([209.85.166.194]:39942 "EHLO mail-it1-f194.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S2388419AbeKFW7E (ORCPT <rfc822;linux-block@vger.kernel.org>); Tue, 6 Nov 2018 17:59:04 -0500 Received: by mail-it1-f194.google.com with SMTP id e11so14300036itl.5 for <linux-block@vger.kernel.org>; Tue, 06 Nov 2018 05:33:49 -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=WdQCtipOOD0azp/zOFFSjypRoBbQ19GDt1GQCydw22L6moie4E1t+1uRkLXLpmJS42 ix2Sb4KvTzrNIpr+aPAfJ01byCZvMaGI12y3lFgr7onHAgBfSy97caR36SYpjNTNZgJy iMqRNm1NAQgM04ddoA+QMZuTlIWfROxy6AWd1z9QsM/COnquNLZUYd2Jn7mGZYyxJ1NV Eysb+CQkmjRkUaGqG8guTGiF8xccszQ+uNAUDVtfLXpZe44vA5z0fl7o2Gn8i/y8U5MK srNG3KgJ2IJXDolm4DbApZtCf+FhCE7d1PBPRQEsuFzsyFiHVk2eL/MjNVfg7/80egYL 1OQQ== X-Gm-Message-State: AGRZ1gIewBt+SiJX8evLeWOe2Oftrd9kr98J59sDo3OZEWEA9hdhgCmt g9U/8Z745U79AG4C2ztpXxBaGg== X-Google-Smtp-Source: AJdET5d/TunfhIrWQ+iW3biEouvoczOl1RfiAnxRayvAZwihEy5GOYyP/ipB+qTOAop6iyuUJP7RQA== 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 <hans.ml.holmberg@owltronix.com> To: Matias Bjorling <mb@lightnvm.io> Cc: Javier Gonzales <javier@cnexlabs.com>, Sebastien Boisvert <sboisvert@gydle.com>, linux-block@vger.kernel.org, linux-kernel@vger.kernel.org, Hans Holmberg <hans.holmberg@cnexlabs.com> 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-block-owner@vger.kernel.org Precedence: bulk List-ID: <linux-block.vger.kernel.org> X-Mailing-List: linux-block@vger.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP |
Series |
PBLK Bugfixes and cleanups
|
expand
|
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: