Received: by 2002:a05:6a10:9848:0:0:0:0 with SMTP id x8csp1481354pxf; Fri, 9 Apr 2021 09:25:00 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxvU4HmoXbA8V4DnLdaES9EvOs9qcpNzQrX0lDkBwSSSGhlbCZqBXdWihuBCHGVriijHsri X-Received: by 2002:a17:90a:f3d8:: with SMTP id ha24mr14383217pjb.137.1617985500038; Fri, 09 Apr 2021 09:25:00 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1617985500; cv=none; d=google.com; s=arc-20160816; b=acBhYmLOYnfvcmWLJMTDimBD9lzxP7AaxGHXk+CZS6O6I4MRmD42v/TBGPkbS2OEmu qot/k3SY7RnP1NsNuyf4kuTE1WgCSWYwqZp/hKpW39mYZljsW3I4pcbNSqQoYJRSBiT2 UOLN80aM+tPo9g/cEPG3UoWPnUY+0f9vCwqV1kA+9kPS/9zAatN/IhV8Yp/NgubJW++U VR0T+4a0Trl6o/VD3N20ZZE3PBKPJZcOPI95S09IVFncWaXE85Q/hWKo+poo9+SEKijA r6lbExXA8blwVGSs0VYiTdCsYTf+mvD1Nu4rOdTsxgaQyD4cqjK/d3pwsc1yJ+NNDFkb EvPg== 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 :references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature; bh=k9tCynbfxmCh7rM8bvunpsGuKjok+S563rvbYgyAM84=; b=Ji04BYQZiHDsnm1AACks2TZWbo+vY+OqRUSXHXbP2h5bRHi1BWdlEJ4o0xPF1LhsFJ gM9rs/KxKiOqcswXgW6BAJYoGFwtiAUQ+ZMXvq13teQV+BO3Q5yoGF9wf72bS8DuSOUh f9VSc+hUETx/eB0lgxL20QLSqfSE2XNilCpDmDdcbQVMqok4nn98WcKHvz8l6A0xqhMG x1Y+rUQapsGQ8VW7JKo5kOvz8BV4PhxMSbIocgWNRdTlC7R+T0eA7pVTMbDnFtyet09G 70icNmCqnR9CCoqYzvIVS/+VUpW+0VWaTa3kDqNWxB4yZdMn9CO8qisUVSYB1+q4wZqB nLMw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=nJMKlDJd; 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=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id mw9si3420777pjb.62.2021.04.09.09.24.47; Fri, 09 Apr 2021 09:25:00 -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; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=nJMKlDJd; 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=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S233038AbhDIQYB (ORCPT + 99 others); Fri, 9 Apr 2021 12:24:01 -0400 Received: from mail.kernel.org ([198.145.29.99]:60024 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S234153AbhDIQXu (ORCPT ); Fri, 9 Apr 2021 12:23:50 -0400 Received: by mail.kernel.org (Postfix) with ESMTPSA id 4B19161074; Fri, 9 Apr 2021 16:23:31 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1617985411; bh=tI7eVBrB/MCLoZhFb0CZzo3rY7WtHeLAiDdnaKfw8Z4=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=nJMKlDJdDYI/HEyGe/s9/67pkNiQ1BH7my8989JCy9Da6vpYdyzJ+wGUpHIgfcSwn +J51TZfl9YEzbeBV8huxR3yXDzwZcfkA7nZBnMmgT8jDk0NxJ3+zTG2IGb+WE3AFtO PYHwtdjA051Ah5WvBc+tCyl/y4oG8GW7P/vUvJnKpxOA/EF+4uZerXgCN/E19TLRrd ypqVEZhc7i3niq0Y4uoaOSJB7kVoIpqiygOdpc9wtnvT3Ovx2qydZRizzTJnspKuEk 5xV+HLBGZ/pWatSmmzGBfpNGRZQI3pVAsccx4IQKug0bmp2b14HllEcJEBhp3gmI6e E/ekHw11EXGHw== From: Mark Brown To: xiaoning.wang@nxp.com, Wang Li , frank.li@nxp.com, han.xu@nxp.com Cc: Mark Brown , linux-kernel@vger.kernel.org, linux-spi@vger.kernel.org Subject: Re: [PATCH -next] spi: fsl-lpspi: Fix PM reference leak in lpspi_prepare_xfer_hardware() Date: Fri, 9 Apr 2021 17:22:44 +0100 Message-Id: <161798356988.48466.17209848169059258349.b4-ty@kernel.org> X-Mailer: git-send-email 2.20.1 In-Reply-To: <20210409095430.29868-1-wangli74@huawei.com> References: <20210409095430.29868-1-wangli74@huawei.com> MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 8bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Fri, 9 Apr 2021 09:54:30 +0000, Wang Li wrote: > pm_runtime_get_sync will increment pm usage counter even it failed. > Forgetting to putting operation will result in reference leak here. > Fix it by replacing it with pm_runtime_resume_and_get to keep usage > counter balanced. Applied to https://git.kernel.org/pub/scm/linux/kernel/git/broonie/spi.git for-next Thanks! [1/1] spi: fsl-lpspi: Fix PM reference leak in lpspi_prepare_xfer_hardware() commit: a03675497970a93fcf25d81d9d92a59c2d7377a7 All being well this means that it will be integrated into the linux-next tree (usually sometime in the next 24 hours) and sent to Linus during the next merge window (or sooner if it is a bug fix), however if problems are discovered then the patch may be dropped or reverted. You may get further e-mails resulting from automated or manual testing and review of the tree, please engage with people reporting problems and send followup patches addressing any issues that are reported if needed. If any updates are required or you are submitting further changes they should be sent as incremental updates against current git, existing patches will not be replaced. Please add any relevant lists and maintainers to the CCs when replying to this mail. Thanks, Mark