Re: [PATCH] sound: fsl: add missing put_device() call in imx_hdmi_probe()

2021-12-20 Thread Shengjiu Wang
On Thu, Dec 9, 2021 at 5:58 PM 王擎 wrote: > > > >> From: Wang Qing > >> > >> of_find_device_by_node() takes a reference to the embedded struct device > >> which needs to be dropped when error return. > > > >... > > > >>data = devm_kzalloc(&pdev->dev, sizeof(*data), GFP_KERNEL); > >>

RE: [PATCH] sound: fsl: add missing put_device() call in imx_hdmi_probe()

2021-12-09 Thread 王擎
>> From: Wang Qing >> >> of_find_device_by_node() takes a reference to the embedded struct device >> which needs to be dropped when error return. > >... > >>    data = devm_kzalloc(&pdev->dev, sizeof(*data), GFP_KERNEL); >>    if (!data) { >> + put_device(&cpu_pdev->dev); >

Re: [PATCH] sound: fsl: add missing put_device() call in imx_hdmi_probe()

2021-12-08 Thread Mark Brown
On Tue, Dec 07, 2021 at 04:56:58AM -0800, Qing Wang wrote: > From: Wang Qing > > of_find_device_by_node() takes a reference to the embedded struct device > which needs to be dropped when error return. ... > data = devm_kzalloc(&pdev->dev, sizeof(*data), GFP_KERNEL); > if (!data) {

[PATCH] sound: fsl: add missing put_device() call in imx_hdmi_probe()

2021-12-07 Thread Qing Wang
From: Wang Qing of_find_device_by_node() takes a reference to the embedded struct device which needs to be dropped when error return. Signed-off-by: Wang Qing --- sound/soc/fsl/imx-hdmi.c | 1 + 1 file changed, 1 insertion(+) diff --git a/sound/soc/fsl/imx-hdmi.c b/sound/soc/fsl/imx-hdmi.c i