Message ID | 20210528113018.52290-19-jinpu.wang@ionos.com (mailing list archive) |
---|---|
State | Accepted |
Delegated to: | Jason Gunthorpe |
Headers | show
Return-Path: <linux-rdma-owner@kernel.org> X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-18.8 required=3.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS,INCLUDES_CR_TRAILER, INCLUDES_PATCH,MAILING_LIST_MULTI,SPF_HELO_NONE,SPF_PASS,USER_AGENT_GIT autolearn=ham autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 5B7BDC4708F for <linux-rdma@archiver.kernel.org>; Fri, 28 May 2021 11:30:49 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by mail.kernel.org (Postfix) with ESMTP id 3F2E0613D1 for <linux-rdma@archiver.kernel.org>; Fri, 28 May 2021 11:30:49 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S235089AbhE1LcV (ORCPT <rfc822;linux-rdma@archiver.kernel.org>); Fri, 28 May 2021 07:32:21 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:49418 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S234129AbhE1LcL (ORCPT <rfc822;linux-rdma@vger.kernel.org>); Fri, 28 May 2021 07:32:11 -0400 Received: from mail-ej1-x635.google.com (mail-ej1-x635.google.com [IPv6:2a00:1450:4864:20::635]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id C93D9C06174A for <linux-rdma@vger.kernel.org>; Fri, 28 May 2021 04:30:36 -0700 (PDT) Received: by mail-ej1-x635.google.com with SMTP id jt22so4837611ejb.7 for <linux-rdma@vger.kernel.org>; Fri, 28 May 2021 04:30:36 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ionos.com; s=google; h=from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=rGxecfoeO7J0ch1dgSDW11rX626ORhUGBzNvZWcGShA=; b=Cgcv/98UiIRqhhuZqF7FD8/HEFCm8pszLlT52XBFR7W8n8Yu2lKkRZBn2kU7KTnnzk edV7AwhSpAJTHvEN9pD2ZCo4Xg0QeouhjpYjDTLCH3t01psZMAZuyn0fW+78Z89RjO8B ZZSIOmrUUzt7WZl8GPm18g6Ys42MRdES/yg/SZnLUflXssZR3zLg8gSXHhQ5xpv3oyyl 48CnWuk/bnVchWpfPWwA3986pUd7N+Q3cM3eyse8lsRYij+JwGLzlBmnt4sTJ2E6RPIY 7vZ0Kken8tnIAVivbnKOVQhsA6haZTp8qdNlgsGkOP9j6tz96nd3m+vZKghyy67r0gU9 +liA== 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=rGxecfoeO7J0ch1dgSDW11rX626ORhUGBzNvZWcGShA=; b=QVU/1Ifqqgqtak+lDWJqvKViODZCch7X+nthr2c/gLT4iHR58C1+nKGWgbpKGEq1CT A+chh7n4fJjWjiyJZf6evOKXRp+85mHoMKb1NMGAl5Ve546MVfISmja8G4BN9JMRzZ1o CWERlwTSWgQh06CAiOsoGgy+4HCXTw42d+koPxJj6m7britFz4YNeryeaUk+SqAEp7QZ avMZu6xdL2g1MsDYoZVsVr2o45UoRIO+CbIFWI8lfj6zhAVbPga3YSg+ZcfdWQg6cOlg xPcL3+WOTXgoKY0MbPUxSvMx38t7i28ULoRQjz/ZAE+rwraMYxa0fEY+FCaLxAIhDngJ EACQ== X-Gm-Message-State: AOAM532tYxw7Hq3rDiHHhRMibmjPOhJO4dtKoh3mT538VkIaep/WaLwR TGz3vFtxaiFI1e6rDg7DakxbXK6/k3bDAA== X-Google-Smtp-Source: ABdhPJzFQIXSI8iIRuTbcfW/bvqTKl99mfRENFqzmlh2hfHBBbD1sYZThWuJ4d/j2cFCB7wzTNLXRQ== X-Received: by 2002:a17:906:498b:: with SMTP id p11mr8669591eju.295.1622201435216; Fri, 28 May 2021 04:30:35 -0700 (PDT) Received: from jwang-Latitude-5491.fkb.profitbricks.net ([2001:16b8:497d:7d00:983b:122a:4685:3849]) by smtp.gmail.com with ESMTPSA id p15sm2594578edr.50.2021.05.28.04.30.34 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 28 May 2021 04:30:34 -0700 (PDT) From: Jack Wang <jinpu.wang@ionos.com> To: linux-rdma@vger.kernel.org Cc: bvanassche@acm.org, leon@kernel.org, dledford@redhat.com, jgg@ziepe.ca, haris.iqbal@ionos.com, jinpu.wang@ionos.com, Jack Wang <jinpu.wang@cloud.ionos.com>, Gioh Kim <gi-oh.kim@ionos.com> Subject: [PATCHv3 for-next 18/20] RDMA/rtrs-srv: Fix memory leak when having multiple sessions Date: Fri, 28 May 2021 13:30:16 +0200 Message-Id: <20210528113018.52290-19-jinpu.wang@ionos.com> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20210528113018.52290-1-jinpu.wang@ionos.com> References: <20210528113018.52290-1-jinpu.wang@ionos.com> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Precedence: bulk List-ID: <linux-rdma.vger.kernel.org> X-Mailing-List: linux-rdma@vger.kernel.org |
Series |
RTRS update for 5.14
|
expand
|
diff --git a/drivers/infiniband/ulp/rtrs/rtrs-srv-sysfs.c b/drivers/infiniband/ulp/rtrs/rtrs-srv-sysfs.c index a9288175fbb5..20efd44297fb 100644 --- a/drivers/infiniband/ulp/rtrs/rtrs-srv-sysfs.c +++ b/drivers/infiniband/ulp/rtrs/rtrs-srv-sysfs.c @@ -208,6 +208,7 @@ rtrs_srv_destroy_once_sysfs_root_folders(struct rtrs_srv_sess *sess) device_del(&srv->dev); put_device(&srv->dev); } else { + put_device(&srv->dev); mutex_unlock(&srv->paths_mutex); } }