From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from smtp.kernel.org (aws-us-west-2-korg-mail-alma10-1.taild15c8.ts.net [100.103.45.18]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 51B4A3AA1B6; Wed, 1 Jul 2026 21:07:36 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=100.103.45.18 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1782940057; cv=none; b=FWQt+qsgTY1LsB7Y3sVp8vGM44RgVASsIlJt5yfbCpFvrQOp/+SQTRI/N0MDDgC7T9K0PEcvox8fNNmJF5u8Rox4WELOaIkbpM1M6RsrbpLxPF0Rha8htYKPGkZuWSSrMiAfMxlM5xBr10K9DFGvEoWjwNVmXA0K0t7LsqkECeY= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1782940057; c=relaxed/simple; bh=ByYszYPdC+psAWTW1wE3vbvgyyLcgxDdEtNdJqHLT5w=; h=From:To:Cc:In-Reply-To:References:Subject:Message-Id:Date: MIME-Version:Content-Type; b=i2o7MI+W6HyYwHrTAmOSNBmNYkz8lSXltTwKv9rokMJATGn0aIVNM/RUo4a/V7ng3+CTWsHWkCZrG46hvVeSluUXdbIfhPWp+B/rxZrIiFHdMvbClYX18SajdPWPWgy4gTelzbNjgQWFrC4PJvoXC7LWCiCgTcn0DfcNZRe2TBI= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b=TQHxpVkP; arc=none smtp.client-ip=100.103.45.18 Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b="TQHxpVkP" Received: by smtp.kernel.org (Postfix) with ESMTPSA id 4FBB31F00A3A; Wed, 1 Jul 2026 21:07:34 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=kernel.org; s=k20260515; t=1782940056; bh=sfG7s89mfvljYpVWOaNelZwNwYWXPtSU+euAa/rOwBg=; h=From:To:Cc:In-Reply-To:References:Subject:Date; b=TQHxpVkPsNmamdUSK8oPd9dm5DS5uPpgVkAwzNTKuIbqMZZ8ZnWnsm6AMKtb1iS1y 3Cz4zryUD0GoJhSmJTWhCOaj1OOXIcbCQB+WtRxB9vDegQwGJqR48js2hxU2fT9QEK 6vOF8hBRdxLT76ATSgb6X2K9KKO72RF9dXSfYpa+MNH/s5Pm8YM5E09HSJeRwfEqJ1 LY16ji3IAKaYOd0zr7F4atjLAyrkoIo+uvPK0eZOHlqHIf/iK5dBz1M9Xoy8PgyHq0 fZnTzCc7c05K4YnyYnrz3WV3GsMShP/aKJzTe2rhL0NxwZH8UQ4TejpjZa81if9YuS RM1SLLJILhtDA== From: Srinivas Kandagatla To: linux-arm-msm@vger.kernel.org, Anandu Krishnan E Cc: gregkh@linuxfoundation.org, quic_bkumar@quicinc.com, linux-kernel@vger.kernel.org, quic_chennak@quicinc.com, dri-devel@lists.freedesktop.org, arnd@arndb.de, ekansh.gupta@oss.qualcomm.com, stable@kernel.org In-Reply-To: <20260525085340.2734738-1-anandu.e@oss.qualcomm.com> References: <20260525085340.2734738-1-anandu.e@oss.qualcomm.com> Subject: Re: [PATCH v1] misc: fastrpc: fix channel ctx ref leak when session alloc fails Message-Id: <178294005408.13032.9633451619945550985.b4-ty@kernel.org> Date: Wed, 01 Jul 2026 22:07:34 +0100 Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 7bit X-Mailer: b4 0.14.3 On Mon, 25 May 2026 14:23:40 +0530, Anandu Krishnan E wrote: > fastrpc_channel_ctx_get() is called in fastrpc_device_open() before > fastrpc_session_alloc(). If session alloc fails, the error path > returns -EBUSY without calling fastrpc_channel_ctx_put(), leaking > the reference. Fix by adding the missing put. > > Applied, thanks! [1/1] misc: fastrpc: fix channel ctx ref leak when session alloc fails commit: c48eabae708407d4f26eeb81f9fe8215741b78fb Best regards, -- Srinivas Kandagatla