Received: by 2002:a05:6a10:206:0:0:0:0 with SMTP id 6csp1715561pxj; Wed, 19 May 2021 12:11:04 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzxB8lLFF76zXlbiH3xvuLnyaUkRPwy13u8ds4GewmPH9ADRAujxGpBQjkUjBHQmqkddaM6 X-Received: by 2002:a17:906:fcdc:: with SMTP id qx28mr629007ejb.375.1621451464196; Wed, 19 May 2021 12:11:04 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1621451464; cv=none; d=google.com; s=arc-20160816; b=ZHKaCxwRWYoNeVbmOpLGpz+XEi8Dxav+U3f9IxVCFl2X9YR/k1wLmC0X3lgMIhpCvC skNq3JJo1vGe3E8NbUiFPijSRxG5dxVm7sKa2yeH4Z8tDg/Rk2QHZ9keSgYmNrotmkCt tiH9Dyf6IEewkESSmEOufQI2fCMtnK08IjPldugzB001XXY3XWAQbIRRipcXbElxEiYu rJNm/HI7JolzprWPZ64BlpkxkwyUVRtGsylXH7bSzMcShwh4poCtrwl9WQt1rjbxy1Nw yRe2+ytpCRhpqrvNlG1MVmdhqDRoXy65aQ9noYW7wSsp3mf8KG00usT2L4Z4NAUuP1Xw Nkhg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:mime-version:message-id:date:subject:cc:to:from; bh=Onf/oBvrEBrleKpLkof8+5uuCN/bWPS6bjj8Xnvw6Cs=; b=rfdHHVOZgo5LTgAKKzXlQU8CHxuUGTJiiF+nHuEvjVkWLQH/DwtlUJVC11IUWLklk/ cW6xEs3J3axKswT0LvcTIwrlUjNFIb+InuOXx9GM1L4qHtjtlsV2tKUKOnOKnkOvSbg9 A8OMgpFIw64hHiV5+e8qo4Qp6zEykO5LNBnXNXEggy4rrkR/uhlqmuJwzHuQvRfvtPkT 8tDiFFwYrsk7J+B6wLuUssAvLmJMnErw/42P1mcTiazqHo6aZkE3Ke9X+8EiKLesA29m wlWbcUNAy2cx7HoQir358pTt5f++t1B8RmrRbofXN7B4Y1UkNiOtlpR2i7Q8lWVfeNED c7Hg== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=huawei.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id dh5si87397edb.241.2021.05.19.12.10.38; Wed, 19 May 2021 12:11:04 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=huawei.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1353277AbhESEgk (ORCPT + 99 others); Wed, 19 May 2021 00:36:40 -0400 Received: from szxga07-in.huawei.com ([45.249.212.35]:3412 "EHLO szxga07-in.huawei.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S237477AbhESEgj (ORCPT ); Wed, 19 May 2021 00:36:39 -0400 Received: from dggems702-chm.china.huawei.com (unknown [172.30.72.58]) by szxga07-in.huawei.com (SkyGuard) with ESMTP id 4FlKjD6lXYzCsc8; Wed, 19 May 2021 12:32:32 +0800 (CST) Received: from dggpeml500019.china.huawei.com (7.185.36.137) by dggems702-chm.china.huawei.com (10.3.19.179) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2176.2; Wed, 19 May 2021 12:35:19 +0800 Received: from huawei.com (10.175.124.27) by dggpeml500019.china.huawei.com (7.185.36.137) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2176.2; Wed, 19 May 2021 12:35:18 +0800 From: Wu Bo To: , , , , , , CC: , Subject: [PATCH 0/2] nvmet: Fix memory leak when create ctrl fails Date: Wed, 19 May 2021 13:01:08 +0800 Message-ID: <1621400470-593256-1-git-send-email-wubo40@huawei.com> X-Mailer: git-send-email 1.8.3.1 MIME-Version: 1.0 Content-Type: text/plain X-Originating-IP: [10.175.124.27] X-ClientProxiedBy: dggems702-chm.china.huawei.com (10.3.19.179) To dggpeml500019.china.huawei.com (7.185.36.137) X-CFilter-Loop: Reflected Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hi, This series of patches to fix the issuse of memory leak when creating ctrl fails. Wu Bo (2): nvmet: Fix memory leak in nvmet_alloc_ctrl() nvme-loop: Fix memory leak in nvme_loop_create_ctrl() drivers/nvme/target/core.c | 2 +- drivers/nvme/target/loop.c | 4 +++- 2 files changed, 4 insertions(+), 2 deletions(-) -- 1.8.3.1