On Fri, 17 Jan 2025 14:18:49 +0000, Tudor Ambarus wrote: > Recently I've been pointed to this driver for an example on how consumers > can get a pointer to the supplier's driver data and I noticed a leak. > > Callers of of_qcom_ice_get() leak the device reference taken by > of_find_device_by_node(). Introduce devm_of_qcom_ice_get(). > Exporting qcom_ice_put() is not done intentionally as the consumers need > the ICE intance for the entire life of their device. Update the consumers > to use the devm variant and make of_qcom_ice_get() static afterwards. > > [...] Applied, thanks! [1/4] soc: qcom: ice: introduce devm_of_qcom_ice_get commit: 1c13d6060d612601a61423f2e8fbf9e48126acca [2/4] mmc: sdhci-msm: fix dev reference leaked through of_qcom_ice_get commit: cbef7442fba510b7eb229dcc9f39d3dde4a159a4 [3/4] scsi: ufs: qcom: fix dev reference leaked through of_qcom_ice_get commit: ded40f32b55f7f2f4ed9627dd3c37a1fe89ed8c6 [4/4] soc: qcom: ice: make of_qcom_ice_get() static commit: 1e9e40fc6fb06d80fd9d834fab5eb5475f64787a Best regards, -- Bjorn Andersson <andersson@xxxxxxxxxx>