Thread (45 messages) 45 messages, 7 authors, 2023-09-13

Re: [PATCH v5 07/17] soc: qcom: minidump: Add pending region registration

From: Krzysztof Kozlowski <hidden>
Date: 2023-09-11 20:53:16
Also in: linux-arm-msm, linux-doc, linux-gpio, linux-hardening, linux-mediatek, linux-remoteproc, linux-samsung-soc, lkml

On 09/09/2023 22:16, Mukesh Ojha wrote:
quoted hunk ↗ jump to hunk
 static int qcom_apss_minidump_probe(struct platform_device *pdev)
 {
 	struct minidump_global_toc *mdgtoc;
@@ -571,7 +688,10 @@ static int qcom_apss_minidump_probe(struct platform_device *pdev)
 		return ret;
 	}
 
+	mutex_lock(&md_plist.plock);
 	platform_set_drvdata(pdev, md);
Why this is locked?
+	qcom_apss_register_pending_regions(md);
Why this one is locked? It seems ordering of your operations is not
correct if you need to lock the providers probe().
+	mutex_unlock(&md_plist.plock);

Best regards,
Krzysztof


_______________________________________________
linux-arm-kernel mailing list
linux-arm-kernel@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/linux-arm-kernel
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help