-
由 Nishka Dasgupta 提交于
In function st_dwc3_probe, variable child_pdev takes the value returned by of_find_device_by_node, which gets a device pointer but does not put it. If child_pdev is not put before the probe function returns, it may cause a reference leak. Hence put child_pdev after its last usage. Issue found with Coccinelle. Reviewed-by: NPatrice Chotard <patrice.chotard@st.com> Signed-off-by: NNishka Dasgupta <nishkadg.linux@gmail.com> Signed-off-by: NFelipe Balbi <felipe.balbi@linux.intel.com>
bceb418b