From mboxrd@z Thu Jan 1 00:00:00 1970 Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.remote-ip=205.220.180.131 ARC-Seal: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; cv=none; t=1796276505; b=QMy9nkk7QSarqM6aqMFwSQFYxa27JLkFbXR3elWTQ+/3t+Pr6BS1ZLv9VOncAf4vPXt8 84sjBwwSEEKufehKSQiE1uTBqXZKodGymCZknlYHLuY1o6KoKe/ElmbbflB/bOeMGwUva jP2eugqC/l7NyKjGqkrxWOeovXtPY6qtl2jKz4/7FjuvjjmtqpMaqJO8wBo1UhIh74g2p k1MYS5iT0EYm5sCcbkn4f6LcXOX4RsqYFeEA2M87c+yyAVgDzD7eziK+j44nQlzWqkINi 7L6wEULRfOZlCWsOBpRMYqc6moVRHCU//Sybd9diHS2kLyaJK/bsAsgqsdPvNmZt0zA== ARC-Message-Signature: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; c=relaxed/relaxed; t=1796276505; h=DMARC-Filter:Received:DKIM-Signature:Received:Received: DKIM-Signature:X-Google-DKIM-Signature:X-Forwarded-Encrypted: X-Gm-Message-State:X-Gm-Gg:X-Received:X-Received:Received:From:Date: Subject:MIME-Version:Content-Type:Content-Transfer-Encoding: Message-Id:References:In-Reply-To:To:Cc:X-Mailer: X-Developer-Signature:X-Developer-Key:X-Proofpoint-GUID: X-Proofpoint-Spam-Info:X-Proofpoint-ORIG-GUID:X-Authority-Analysis: X-Proofpoint-Spam-Details-Enc:X-Proofpoint-Virus-Version: X-Proofpoint-Spam-Details; bh=zYMALDmQc7vybVXHv4j2+F1dEfKQsYRaeXvwpexY3hQ=; b=Lb8sbpUpbdD4bzEQe7ZcOY7ommRRJZWHY0pkjDh3OKedSIBsUV/LYAcBH826+ZAP8qAg sXatIW5EEaneWp+92InCh6KMAMjttZhzaCFo1QrfcFMlRdNOOWezT+if0liWypcYCdTvr 4EJwiSMKiuEg3HvV6anYqkusa9Gbx/BBY7up8ZN7xQhaPIFFKv69FSH3w93GbzoddTIUe pU1h5LOFt+0R7pqxJ8yeQi0qV6egoRALL9DnxBKhiXD2QdCnt8rhtxCJ9ceBPRj3pnQgt GyjvRGHWfAvBwwxTYr3McwfxtXYh48BZmr6y+NCpq1X7z05XAIjk5v96V75omxGwPyA== ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=pass header.from=oss.qualcomm.com; spf=pass smtp.mailfrom=oss.qualcomm.com; dkim=pass header.d=qualcomm.com header.i=@qualcomm.com header.a=rsa-sha256 header.s=qcppdkim1 header.b=WVcosM3X; dkim=pass header.d=oss.qualcomm.com header.i=@oss.qualcomm.com header.a=rsa-sha256 header.s=google header.b=iw2t1cpS; arc=none smtp.remote-ip=205.220.180.131 Received: from mx0b-0031df01.pphosted.com (mx0b-0031df01.pphosted.com [205.220.180.131]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (prime256v1) server-digest SHA256) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id B6713606A333 for ; Thu, 3 Dec 2026 05:41:44 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.4.2 smtp.subspace.kernel.org B6713606A333 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=oss.qualcomm.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=oss.qualcomm.com Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=qualcomm.com header.i=@qualcomm.com header.a=rsa-sha256 header.s=qcppdkim1 header.b=WVcosM3X; dkim=pass (2048-bit key) header.d=oss.qualcomm.com header.i=@oss.qualcomm.com header.a=rsa-sha256 header.s=google header.b=iw2t1cpS Received: from pps.filterd (m0279873.ppops.net [127.0.0.1]) by mx0a-0031df01.pphosted.com (8.18.1.11/8.18.1.11) with ESMTP id 6B3367QR707836 for ; Thu, 3 Dec 2026 05:41:44 GMT DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=qualcomm.com; h= cc:content-transfer-encoding:content-type:date:from:in-reply-to :message-id:mime-version:references:subject:to; s=qcppdkim1; bh= zYMALDmQc7vybVXHv4j2+F1dEfKQsYRaeXvwpexY3hQ=; b=WVcosM3XtqhUNF23 3XbxRpEMWTWgdP7vVvEgVUolDi3w0hfSHdBqNuOaom1t6UESepwKuctLMwfvzvXh 3zNwiALaMAGay0aZJPDHgLk5e47pjIvEeHsBFqDSI6btjBZ9NOgG19exeLRSA6C9 FF1nsVHWEwq5HilOnyFz/e/g60XyVCakk9aZ3Zp0D2ks8xSw1Nf2wmwOgwWSBlF9 Lb7as9R4+V/MRZnJWq7m0UIIMC/9XkVBhomNm37J0JwlTvRN9M0OFK0S5viSGu5E /BxIreUI3NoakAaxzVavDnrdc8Ms7tcQ8U4GmfdegcKl0W0e9l8nq9TQTGwAxy+j WwDsxw== Received: from mail-pj1-f69.google.com (mail-pj1-f69.google.com [209.85.216.69]) by mx0a-0031df01.pphosted.com (PPS) with ESMTPS id 4jaqrtakbm-1 (version=TLSv1.3 cipher=TLS_AES_128_GCM_SHA256 bits=128 verify=NOT) for ; Thu, 03 Dec 2026 05:41:43 +0000 (GMT) Received: by mail-pj1-f69.google.com with SMTP id 98e67ed59e1d1-3b5a5c05993so2561378a91.3 for ; Wed, 02 Dec 2026 21:41:43 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=oss.qualcomm.com; s=google; t=1796276502; x=1796881302; darn=vger.kernel.org; h=cc:to:in-reply-to:references:message-id:content-transfer-encoding :content-type:mime-version:subject:date:from:from:to:cc:subject:date :message-id:reply-to:content-type; bh=zYMALDmQc7vybVXHv4j2+F1dEfKQsYRaeXvwpexY3hQ=; b=iw2t1cpS0/WrGQ7fp8a919vlNI3yq1Oa0CogY9kaW7TAEYhkOknqNMqcNQ7/PS/yGb Cu7f3dG1ypleGaw9MB0ebOrJpNYBsSWX/2sxXi1l0V4OBOKVTGtX9JS8P1LRWTMqqU3H FsaUEMvQK8GWWmFoX36jObMwOKYLSMKAfQGxwfwupP1xz55qaOFyGVB7I1RoegwjLRpn A56pnWzKRRfRyRG5+IOW5XOjUHzTaZ9mEoamcXT1h+KTN/YXAC0moxeemIStIjSvblsL mrrbkE137IY/Ie7O5N+y3qkZqbZX/xFreUu9Jra3/hb4bvEZ9G21pluZAOMPefdsLX7h KJHQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20260707; t=1796276502; x=1796881302; h=cc:to:in-reply-to:references:message-id:content-transfer-encoding :content-type:mime-version:subject:date:from:x-gm-gg :x-gm-message-state:from:to:cc:subject:date:message-id:reply-to :content-type; bh=zYMALDmQc7vybVXHv4j2+F1dEfKQsYRaeXvwpexY3hQ=; b=UsVtt3yuubb7LCu3v/PIh3rSiedbyZ+lB6PVL7wFUob91bvWdu2E7Cvhx53pTn9ibe STSj2TbDl06qeDa9foYSHTuAA3FA4ZfNzPSLyAs4Eou7FHjoffiZG10a3X02WzJxBKJm PRsGOdXFH6LhngiuoOP/+D8gUkYteXu5Ddznb9WpRFPAx9SqHJjFml/ZAWww7yVXpgrH rlmUhUx5h9RWyx7bmIJH805E/Uu2CLwpntcICNqb3IMoh1TOCVDQF0tpgUOPy5e1YbRd tKODu8DCBBhhMLccondvisORO5pD/lNSoyqDc3s6nhBhF8/XljjHo0hY6QnTF7hReDqA mQKQ== X-Forwarded-Encrypted: i=1; AL+hErEsBx4fEusbe8HJbUuLExlIGiPW9MFRgS+4cbFpEO29kmE7thBrZENey7z47f6w9O3gOPd5+FBEtJrlPZQ=@vger.kernel.org X-Gm-Message-State: APuU4Z8RRWyUzf+h+5A/gkeLytfCuJ+5Lie4ik/bMok4WxerLoVZWLtx iQFwkQerkIjrLsqfEl27lb/YRHkhHJ7eVcC6latVYAp9ikbxRIvjNknMOvYqEYlOQtaUQUKBsYf dzl8lhRur8VqJHoWp7FAL2yNZJ389VVFFOPQesfxbdaHfTFAe0ZrOpPCs+IRmpuAhqBU= X-Gm-Gg: AZFdTZdbTQKyV8UjCRLn6S9JNrb3ItqnSo8TNM//e9HwqnKKtaNCYtiUHscLAJUc+Dn s/48m1GRNS+6EDahu6AItlU8GfTbz0KMXp0lG7DJH7Vwhkq0VzV3c3cNGwCqo8Fd3w5MPxk1xkA 7qB1wDluHgxqltJLxzRG17NgyI184Ro4MmZrLZ9VYZCsEZ9XkQiQsvI6Bb22EHWJDtWmj1A/uSx KNQvAJfZdq6lH2FF25c6tay8G6Rifdm1u9qsy0lC70SSXbqyNzTgbelhD0z4bgwy4DFrrh6VCAg 3s9U230eHW8BFeKMSy3le+OSADSC74Q2o6GHR7vEH7cia8ehEvFG+F2jn4Hb63L3v00M3UieenC SiSFrhccQrsmQjViA68yHHjGfdRhErYdLdUPl8SXJAtimmE64hilU8GvgfwnEH31eqoR8cOqAXr o69eSt2g== X-Received: by 2002:a17:90b:2416:b0:3b4:c66c:ba01 with SMTP id 98e67ed59e1d1-3b4c66ce8f8mr22540811a91.50.1796276502473; Wed, 02 Dec 2026 21:41:42 -0800 (PST) X-Received: by 2002:a17:90b:2416:b0:3b4:c66c:ba01 with SMTP id 98e67ed59e1d1-3b4c66ce8f8mr22540791a91.50.1796276501931; Wed, 02 Dec 2026 21:41:41 -0800 (PST) Received: from hu-ekangupt-hyd.qualcomm.com ([202.46.23.25]) by smtp.gmail.com with ESMTPSA id 98e67ed59e1d1-3b5c7d2cec5sm2448751a91.4.2026.12.02.21.41.38 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 02 Dec 2026 21:41:41 -0800 (PST) From: Ekansh Gupta Date: Thu, 03 Dec 2026 11:11:30 +0530 Subject: [PATCH 2/2] misc: fastrpc: use fastrpc_cb_devices_destroy() in probe error path X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Post: List-Help: List-Subscribe: List-Unsubscribe: List-Owner: Precedence: list MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 7bit Message-Id: <20261203-fastrpc-probe-ordering-fix-v1-2-b5e56e5c895f@oss.qualcomm.com> References: <20261203-fastrpc-probe-ordering-fix-v1-0-b5e56e5c895f@oss.qualcomm.com> In-Reply-To: <20261203-fastrpc-probe-ordering-fix-v1-0-b5e56e5c895f@oss.qualcomm.com> To: Srinivas Kandagatla , Arnd Bergmann , Greg Kroah-Hartman , Vinayak Katoch Cc: Bharath Kumar , Chenna Kesava Raju , linux-arm-msm@vger.kernel.org, dri-devel@lists.freedesktop.org, linux-kernel@vger.kernel.org, Ekansh Gupta X-Mailer: b4 0.15.2 X-Developer-Signature: v=1; a=ed25519-sha256; t=1796276490; l=1264; i=ekansh.gupta@oss.qualcomm.com; s=20260223; h=from:subject:message-id; bh=TUeAU4feEY0HwRw9HbKt1WN9A0hDudJ0vGNfUuajXJQ=; b=uyvZb57o44Gb6mGP/wyHGwUck2VJ7U6LRwcQ2FMEHnlAJxkPPDGnOlCc1GeXhb7+9dqw99fUY DZDYjDUIT9WBV4fXcfpT4dA0RtxJKEwhDeYEag5HEoHuNYw2vk8Z5jd X-Developer-Key: i=ekansh.gupta@oss.qualcomm.com; a=ed25519; pk=n0SepARizye+pYjhjg1RA5J+Nq4+IJbyRcBybU+/ERQ= X-Proofpoint-GUID: iIsts-s654MUqleLrrlJf7f56W_eCome X-Proofpoint-Spam-Info: AW1haW4tMjYxMjAzMDAyMiBTYWx0ZWRfX5N2JCjykIS3S FSh2TrWnL+vglgPgfkYSUgbe7fEHO3kQBzsj3hoBJzTk9fMLDLp5dyNrBruyH1io4TO4pBvbu6l MIwx5uwcTYKpmyeErFupFyHO43BBpuE= X-Proofpoint-ORIG-GUID: iIsts-s654MUqleLrrlJf7f56W_eCome X-Authority-Analysis: v=2.4 cv=B54sQ+tM c=1 sm=1 tr=0 ts=6b110117 cx=c_pps a=vVfyC5vLCtgYJKYeQD43oA==:117 a=ZePRamnt/+rB5gQjfz0u9A==:17 a=IkcTkHD0fZMA:10 a=pUM-KoujPXoA:10 a=s4-Qcg_JpJYA:10 a=VkNPw1HP01LnGYTKEx00:22 a=u7WPNUs3qKkmUXheDGA7:22 a=rJkE3RaqiGZ5pbrm-msn:22 a=EUspDBNiAAAA:8 a=Q6Xc_6a07FCLXD9nkCYA:9 a=QEXdDO2ut3YA:10 a=rl5im9kqc5Lf4LNbBjHf:22 X-Proofpoint-Spam-Details-Enc: AW1haW4tMjYxMjAzMDAyMiBTYWx0ZWRfXyJCNt6YHhP+/ CMklIshOiV23D4SNDiMcETz4c2yWnoWK7V2NdzIhYhtU1kwTN8DZOBTSu/ZSL4dMXJUjbwEcYM2 ufLLHJBfQJnU61Z/jncvfkjU0h9Li9tH10Am4Qm+gHvpLvYaXmiYbxSKHopEF1vKymmc4RpnvgF lC0g3YOIIX40qBXMe411EWl1iBgvxA354OP1VMNNwgQckbOgG5cbI50f8fRPvo88iiZvrim+R34 n+SHELDgAWjaeP6kCUblZyffhtwp+N/3PTOchek116N8GQ6pX1RqGzuK5x9S0JYBMalwyCXjE9b P/OWBM5lXnncn3aUMRphIBXgfgcgNq7tTMzzuNufC0FA7Pg02mEkE3wiYU1IksTYffQ8PUw/fR0 wrPQiAAbkjwBAKrIN+/+WVN72U+p8q6PqxMCJMbQViT1HYdsoPSylJBtc8mvqNIRa5cZvzc0GVK cYXBaHYw6Kw8UNq7aAQ== X-Proofpoint-Virus-Version: vendor=baseguard engine=ICAP:2.0.293,Aquarius:18.0.1176,Hydra:6.1.138,FMLib:17.12.100.49 definitions=2026-12-03_01,2026-12-02_07,2025-10-01_01 X-Proofpoint-Spam-Details: rule=outbound_notspam policy=outbound score=0 lowpriorityscore=0 impostorscore=0 priorityscore=1501 adultscore=0 spamscore=0 bulkscore=0 clxscore=1015 malwarescore=0 phishscore=0 suspectscore=0 classifier=typeunknown authscore=0 authtc= authcc= route=outbound adjust=0 reason=mlx scancount=1 engine=8.22.0-2611040001 definitions=main-2612030022 Since commit 81b3908cf7b9 ("misc: fastrpc: iterate CB nodes manually instead of of_platform_populate"), the CB devices are created by fastrpc_cb_devices_create(), but the probe error path still tears them down with of_platform_depopulate(). Use fastrpc_cb_devices_destroy(), as fastrpc_rpmsg_remove() already does, so that the sessions are invalidated under the channel lock before the CB devices are removed. Fixes: 81b3908cf7b9 ("misc: fastrpc: iterate CB nodes manually instead of of_platform_populate") Co-developed-by: Vinayak Katoch Signed-off-by: Vinayak Katoch Signed-off-by: Ekansh Gupta --- drivers/misc/fastrpc.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/misc/fastrpc.c b/drivers/misc/fastrpc.c index cb0972722e08..ff8a94cc522d 100644 --- a/drivers/misc/fastrpc.c +++ b/drivers/misc/fastrpc.c @@ -2854,7 +2854,7 @@ static int fastrpc_rpmsg_probe(struct rpmsg_device *rpdev) fastrpc_notify_users(user); spin_unlock_irqrestore(&data->lock, flags); - of_platform_depopulate(rdev); + fastrpc_cb_devices_destroy(rpdev); fastrpc_channel_ctx_put(data); return err; -- 2.34.1