Received: by 2002:a05:6a10:f347:0:0:0:0 with SMTP id d7csp1191056pxu; Fri, 27 Nov 2020 01:44:43 -0800 (PST) X-Google-Smtp-Source: ABdhPJxMxetTnVsYH3Cxr2LK2GxZE2t/M3kGP0xRiEkx6PfRTJtOmdLg3yuCvnkS7L2d8CXyJWWr X-Received: by 2002:a50:ed84:: with SMTP id h4mr6483600edr.230.1606470282926; Fri, 27 Nov 2020 01:44:42 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1606470282; cv=none; d=google.com; s=arc-20160816; b=yxfIg+iYfd6cwn0xsPRmuES+66HSMCTB9/RHv/LmqNrdevAX90ACyn1CCgnNw8ZnSi iLkngCXa6QlpzVV8t+9gzbw6+RrTliiqs2Jv2hsPevFhAzLxCLr3K/wiZtbFAlJprtKS 0G/+0WnmwBJpmz2n2Thxnv/4KclVM16tKKxzWO5deDsiiFkvnWKu0RKDlLKGnK5AZPpg 6J+1Z2uNsGU8TmLN2gq8W0Odeb7GTuLXqaVqZZCne55OCmd9kquHymRxqJYGDMzSLB9j /NFgVC2RrmpfTXsKC2FD2gHCCdbW2oC0Nb9gyNmMJKtHXUy0MrGOBXkF3NFWmrzl7LnU ljvw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :message-id:date:subject:cc:to:from; bh=HLcNbYuJN1T9ngkxhvRMZGTqlqY8ptxQBhgcyw3DvVo=; b=daWF4g4oRwq8OQg8+Itn5RKZuQ1HO3HB6pAujYbceW9pa37fOn5UfmoriBaSgNZrCk SnFoERhEjJCBq8pwqaw11XbRhla436ZonZ4d/1OOmVC8TCLxt7GLZHDD8dSoeE3fiRkL X87Of0n1Su5REkiDWFFIOfxtnPF9fY99l4uUKDRP+fQpkmx6en2XGPKh7S46+caPvVCI lWjmbA//Za3kv4QfB6RUnPrlZBGeqd0URVcXmz9zX0fiCzJPtWjywaMshVlJbX/uDVXc ZLS1YihYWNhhqzRPmaMilgAd3s6SiTGrBeUIpb6Ofkxo+sNtXd+zEleGsopm8pU/suWd 599A== 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 Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id k9si3960954ejp.237.2020.11.27.01.44.20; Fri, 27 Nov 2020 01:44:42 -0800 (PST) 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1729095AbgK0JlS (ORCPT + 99 others); Fri, 27 Nov 2020 04:41:18 -0500 Received: from szxga06-in.huawei.com ([45.249.212.32]:8435 "EHLO szxga06-in.huawei.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1729051AbgK0JlR (ORCPT ); Fri, 27 Nov 2020 04:41:17 -0500 Received: from DGGEMS402-HUB.china.huawei.com (unknown [172.30.72.59]) by szxga06-in.huawei.com (SkyGuard) with ESMTP id 4Cj8kz3KGnzhhmw; Fri, 27 Nov 2020 17:40:59 +0800 (CST) Received: from localhost.localdomain.localdomain (10.175.113.25) by DGGEMS402-HUB.china.huawei.com (10.3.19.202) with Microsoft SMTP Server id 14.3.487.0; Fri, 27 Nov 2020 17:41:08 +0800 From: Qinglang Miao To: Vinod Koul , Dan Williams , Maxime Coquelin , Alexandre Torgue CC: , , , , Qinglang Miao Subject: [PATCH 0/3] dmaengine: stm32: fix reference leak Date: Fri, 27 Nov 2020 17:45:22 +0800 Message-ID: <20201127094525.121388-1-miaoqinglang@huawei.com> X-Mailer: git-send-email 2.20.1 MIME-Version: 1.0 Content-Transfer-Encoding: 7BIT Content-Type: text/plain; charset=US-ASCII X-Originating-IP: [10.175.113.25] X-CFilter-Loop: Reflected Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org pm_runtime_get_sync will increment pm usage counter even it failed. Forgetting to putting operation will result in a reference leak here. Use pm_runtime_resume_and_get to fix it. Qinglang Miao (3): dmaengine: stm32-dma: fix reference leak in stm32_dma dmaengine: stm32-dmamux: fix reference leak in stm32_dmamux dmaengine: stm32-mdma: fix reference leak in stm32-mdma drivers/dma/stm32-dma.c | 4 ++-- drivers/dma/stm32-dmamux.c | 6 +++--- drivers/dma/stm32-mdma.c | 4 ++-- 3 files changed, 7 insertions(+), 7 deletions(-) -- 2.23.0