* [PATCH] ASoC: qcom: Fix NULL Dereference in asoc_qcom_lpass_cpu_platform_probe()
@ 2024-10-02 16:12 Gax-c
2024-10-03 5:54 ` Greg KH
0 siblings, 1 reply; 14+ messages in thread
From: Gax-c @ 2024-10-02 16:12 UTC (permalink / raw)
To: srinivas.kandagatla, lgirdwood, broonie, perex, tiwai, rohitkr
Cc: alsa-devel, linux-arm-msm, linux-sound, zzjas98, chenyuan0y,
Gax-c, stable
A devm_kzalloc() in asoc_qcom_lpass_cpu_platform_probe() could
possibly return NULL pointer. NULL Pointer Dereference may be
triggerred without addtional check.
Add a NULL check for the returned pointer.
Fixes: b5022a36d28f ("ASoC: qcom: lpass: Use regmap_field for i2sctl and dmactl registers")
Signed-off-by: Zichen Xie <zichenxie0106@gmail.com>
Cc: stable@vger.kernel.org
---
sound/soc/qcom/lpass-cpu.c | 2 ++
1 file changed, 2 insertions(+)
diff --git a/sound/soc/qcom/lpass-cpu.c b/sound/soc/qcom/lpass-cpu.c
index 5a47f661e0c6..242bc16da36d 100644
--- a/sound/soc/qcom/lpass-cpu.c
+++ b/sound/soc/qcom/lpass-cpu.c
@@ -1242,6 +1242,8 @@ int asoc_qcom_lpass_cpu_platform_probe(struct platform_device *pdev)
/* Allocation for i2sctl regmap fields */
drvdata->i2sctl = devm_kzalloc(&pdev->dev, sizeof(struct lpaif_i2sctl),
GFP_KERNEL);
+ if (!drvdata->i2sctl)
+ return -ENOMEM;
/* Initialize bitfields for dai I2SCTL register */
ret = lpass_cpu_init_i2sctl_bitfields(dev, drvdata->i2sctl,
--
2.25.1
^ permalink raw reply related [flat|nested] 14+ messages in thread* Re: [PATCH] ASoC: qcom: Fix NULL Dereference in asoc_qcom_lpass_cpu_platform_probe()
2024-10-02 16:12 [PATCH] ASoC: qcom: Fix NULL Dereference in asoc_qcom_lpass_cpu_platform_probe() Gax-c
@ 2024-10-03 5:54 ` Greg KH
2024-10-03 15:27 ` Gax-c
0 siblings, 1 reply; 14+ messages in thread
From: Greg KH @ 2024-10-03 5:54 UTC (permalink / raw)
To: Gax-c
Cc: srinivas.kandagatla, lgirdwood, broonie, perex, tiwai, rohitkr,
alsa-devel, linux-arm-msm, linux-sound, zzjas98, chenyuan0y,
stable
On Wed, Oct 02, 2024 at 11:12:33AM -0500, Gax-c wrote:
> A devm_kzalloc() in asoc_qcom_lpass_cpu_platform_probe() could
> possibly return NULL pointer. NULL Pointer Dereference may be
> triggerred without addtional check.
> Add a NULL check for the returned pointer.
>
> Fixes: b5022a36d28f ("ASoC: qcom: lpass: Use regmap_field for i2sctl and dmactl registers")
> Signed-off-by: Zichen Xie <zichenxie0106@gmail.com>
> Cc: stable@vger.kernel.org
Your "From:" line does not match your signed-off-by :(
^ permalink raw reply [flat|nested] 14+ messages in thread* [PATCH] ASoC: qcom: Fix NULL Dereference in asoc_qcom_lpass_cpu_platform_probe()
2024-10-03 5:54 ` Greg KH
@ 2024-10-03 15:27 ` Gax-c
2024-10-05 15:40 ` Markus Elfring
2024-10-06 20:23 ` [PATCH] " Dmitry Baryshkov
0 siblings, 2 replies; 14+ messages in thread
From: Gax-c @ 2024-10-03 15:27 UTC (permalink / raw)
To: gregkh, broonie, lgirdwood, linux-arm-msm, linux-sound, perex,
tiwai, rohitkr, srinivas.kandagatla
Cc: stable, alsa-devel, chenyuan0y, zzjas98, Zichen Xie
From: Zichen Xie <zichenxie0106@gmail.com>
A devm_kzalloc() in asoc_qcom_lpass_cpu_platform_probe() could
possibly return NULL pointer. NULL Pointer Dereference may be
triggerred without addtional check.
Add a NULL check for the returned pointer.
Fixes: b5022a36d28f ("ASoC: qcom: lpass: Use regmap_field for i2sctl and dmactl registers")
Signed-off-by: Zichen Xie <zichenxie0106@gmail.com>
Cc: stable@vger.kernel.org
---
sound/soc/qcom/lpass-cpu.c | 2 ++
1 file changed, 2 insertions(+)
diff --git a/sound/soc/qcom/lpass-cpu.c b/sound/soc/qcom/lpass-cpu.c
index 5a47f661e0c6..242bc16da36d 100644
--- a/sound/soc/qcom/lpass-cpu.c
+++ b/sound/soc/qcom/lpass-cpu.c
@@ -1242,6 +1242,8 @@ int asoc_qcom_lpass_cpu_platform_probe(struct platform_device *pdev)
/* Allocation for i2sctl regmap fields */
drvdata->i2sctl = devm_kzalloc(&pdev->dev, sizeof(struct lpaif_i2sctl),
GFP_KERNEL);
+ if (!drvdata->i2sctl)
+ return -ENOMEM;
/* Initialize bitfields for dai I2SCTL register */
ret = lpass_cpu_init_i2sctl_bitfields(dev, drvdata->i2sctl,
--
2.25.1
^ permalink raw reply related [flat|nested] 14+ messages in thread* Re: [PATCH] ASoC: qcom: Fix NULL Dereference in asoc_qcom_lpass_cpu_platform_probe()
2024-10-03 15:27 ` Gax-c
@ 2024-10-05 15:40 ` Markus Elfring
2024-10-06 8:29 ` Greg Kroah-Hartman
2024-10-06 20:23 ` [PATCH] " Dmitry Baryshkov
1 sibling, 1 reply; 14+ messages in thread
From: Markus Elfring @ 2024-10-05 15:40 UTC (permalink / raw)
To: Zichen Xie, alsa-devel, linux-sound, linux-arm-msm,
Greg Kroah-Hartman, Jaroslav Kysela, Liam Girdwood, Mark Brown,
Rohit kumar, Srinivas Kandagatla, Takashi Iwai
Cc: stable, LKML, Chenyuan Yang, Zijie Zhao
> A devm_kzalloc() in asoc_qcom_lpass_cpu_platform_probe() could
call?
> possibly return NULL pointer. NULL Pointer Dereference may be
> triggerred without addtional check.
…
* How do you think about to use the term “null pointer dereference”
for the final commit message (including the summary phrase)?
* Would you like to avoid any typos here?
…
> ---
> sound/soc/qcom/lpass-cpu.c | 2 ++
Did you overlook to add a version description behind the marker line?
https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/tree/Documentation/process/submitting-patches.rst?h=v6.12-rc1#n723
Regards,
Markus
^ permalink raw reply [flat|nested] 14+ messages in thread* Re: [PATCH] ASoC: qcom: Fix NULL Dereference in asoc_qcom_lpass_cpu_platform_probe()
2024-10-05 15:40 ` Markus Elfring
@ 2024-10-06 8:29 ` Greg Kroah-Hartman
2024-10-06 8:56 ` Markus Elfring
0 siblings, 1 reply; 14+ messages in thread
From: Greg Kroah-Hartman @ 2024-10-06 8:29 UTC (permalink / raw)
To: Markus Elfring
Cc: Zichen Xie, alsa-devel, linux-sound, linux-arm-msm,
Jaroslav Kysela, Liam Girdwood, Mark Brown, Rohit kumar,
Srinivas Kandagatla, Takashi Iwai, stable, LKML, Chenyuan Yang,
Zijie Zhao
On Sat, Oct 05, 2024 at 05:40:53PM +0200, Markus Elfring wrote:
> > A devm_kzalloc() in asoc_qcom_lpass_cpu_platform_probe() could
>
> call?
>
>
> > possibly return NULL pointer. NULL Pointer Dereference may be
> > triggerred without addtional check.
> …
>
> * How do you think about to use the term “null pointer dereference”
> for the final commit message (including the summary phrase)?
>
> * Would you like to avoid any typos here?
>
>
> …
> > ---
> > sound/soc/qcom/lpass-cpu.c | 2 ++
>
> Did you overlook to add a version description behind the marker line?
> https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/tree/Documentation/process/submitting-patches.rst?h=v6.12-rc1#n723
>
> Regards,
> Markus
Hi,
This is the semi-friendly patch-bot of Greg Kroah-Hartman.
Markus, you seem to have sent a nonsensical or otherwise pointless
review comment to a patch submission on a Linux kernel developer mailing
list. I strongly suggest that you not do this anymore. Please do not
bother developers who are actively working to produce patches and
features with comments that, in the end, are a waste of time.
Patch submitter, please ignore Markus's suggestion; you do not need to
follow it at all. The person/bot/AI that sent it is being ignored by
almost all Linux kernel maintainers for having a persistent pattern of
behavior of producing distracting and pointless commentary, and
inability to adapt to feedback. Please feel free to also ignore emails
from them.
thanks,
greg k-h's patch email bot
^ permalink raw reply [flat|nested] 14+ messages in thread
* Re: [PATCH] ASoC: qcom: Fix NULL Dereference in asoc_qcom_lpass_cpu_platform_probe()
2024-10-06 8:29 ` Greg Kroah-Hartman
@ 2024-10-06 8:56 ` Markus Elfring
2024-10-06 10:08 ` Greg Kroah-Hartman
0 siblings, 1 reply; 14+ messages in thread
From: Markus Elfring @ 2024-10-06 8:56 UTC (permalink / raw)
To: Greg Kroah-Hartman, Zichen Xie, alsa-devel, linux-sound,
linux-arm-msm
Cc: Jaroslav Kysela, Liam Girdwood, Mark Brown, Rohit kumar,
Srinivas Kandagatla, Takashi Iwai, stable, LKML, Chenyuan Yang,
Zijie Zhao
>>> A devm_kzalloc() in asoc_qcom_lpass_cpu_platform_probe() could
>>
>> call?
>>
>>
>>> possibly return NULL pointer. NULL Pointer Dereference may be
>>> triggerred without addtional check.
>> …
>>
>> * How do you think about to use the term “null pointer dereference”
>> for the final commit message (including the summary phrase)?
>>
>> * Would you like to avoid any typos here?
>>
>>
>> …
>>> ---
>>> sound/soc/qcom/lpass-cpu.c | 2 ++
>>
>> Did you overlook to add a version description behind the marker line?
>> https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/tree/Documentation/process/submitting-patches.rst?h=v6.12-rc1#n723
…
> This is the semi-friendly patch-bot of Greg Kroah-Hartman.
>
> Markus, you seem to have sent a nonsensical or otherwise pointless
> review comment to a patch submission on a Linux kernel developer mailing
> list. I strongly suggest that you not do this anymore. Please do not
> bother developers who are actively working to produce patches and
> features with comments that, in the end, are a waste of time.
>
> Patch submitter, please ignore Markus's suggestion; you do not need to
> follow it at all. The person/bot/AI that sent it is being ignored by
> almost all Linux kernel maintainers for having a persistent pattern of
> behavior of producing distracting and pointless commentary, and
> inability to adapt to feedback. Please feel free to also ignore emails
> from them.
* Do you care for any spell checking?
* Do you find any related advice (from other automated responses) helpful?
Regards,
Markus
^ permalink raw reply [flat|nested] 14+ messages in thread
* Re: [PATCH] ASoC: qcom: Fix NULL Dereference in asoc_qcom_lpass_cpu_platform_probe()
2024-10-06 8:56 ` Markus Elfring
@ 2024-10-06 10:08 ` Greg Kroah-Hartman
2024-10-06 11:12 ` Markus Elfring
0 siblings, 1 reply; 14+ messages in thread
From: Greg Kroah-Hartman @ 2024-10-06 10:08 UTC (permalink / raw)
To: Markus Elfring
Cc: Zichen Xie, alsa-devel, linux-sound, linux-arm-msm,
Jaroslav Kysela, Liam Girdwood, Mark Brown, Rohit kumar,
Srinivas Kandagatla, Takashi Iwai, stable, LKML, Chenyuan Yang,
Zijie Zhao
On Sun, Oct 06, 2024 at 10:56:51AM +0200, Markus Elfring wrote:
> >>> A devm_kzalloc() in asoc_qcom_lpass_cpu_platform_probe() could
> >>
> >> call?
> >>
> >>
> >>> possibly return NULL pointer. NULL Pointer Dereference may be
> >>> triggerred without addtional check.
> >> …
> >>
> >> * How do you think about to use the term “null pointer dereference”
> >> for the final commit message (including the summary phrase)?
> >>
> >> * Would you like to avoid any typos here?
> >>
> >>
> >> …
> >>> ---
> >>> sound/soc/qcom/lpass-cpu.c | 2 ++
> >>
> >> Did you overlook to add a version description behind the marker line?
> >> https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/tree/Documentation/process/submitting-patches.rst?h=v6.12-rc1#n723
> …
> > This is the semi-friendly patch-bot of Greg Kroah-Hartman.
> >
> > Markus, you seem to have sent a nonsensical or otherwise pointless
> > review comment to a patch submission on a Linux kernel developer mailing
> > list. I strongly suggest that you not do this anymore. Please do not
> > bother developers who are actively working to produce patches and
> > features with comments that, in the end, are a waste of time.
> >
> > Patch submitter, please ignore Markus's suggestion; you do not need to
> > follow it at all. The person/bot/AI that sent it is being ignored by
> > almost all Linux kernel maintainers for having a persistent pattern of
> > behavior of producing distracting and pointless commentary, and
> > inability to adapt to feedback. Please feel free to also ignore emails
> > from them.
> * Do you care for any spell checking?
No.
> * Do you find any related advice (from other automated responses) helpful?
No.
^ permalink raw reply [flat|nested] 14+ messages in thread
* Re: ASoC: qcom: Fix NULL Dereference in asoc_qcom_lpass_cpu_platform_probe()
2024-10-06 10:08 ` Greg Kroah-Hartman
@ 2024-10-06 11:12 ` Markus Elfring
2024-10-07 12:20 ` Markus Elfring
0 siblings, 1 reply; 14+ messages in thread
From: Markus Elfring @ 2024-10-06 11:12 UTC (permalink / raw)
To: Greg Kroah-Hartman, Zichen Xie, alsa-devel, linux-sound,
linux-arm-msm
Cc: Jaroslav Kysela, Liam Girdwood, Mark Brown, Rohit kumar,
Srinivas Kandagatla, Takashi Iwai, stable, LKML, Chenyuan Yang,
Zijie Zhao
>>>>> A devm_kzalloc() in asoc_qcom_lpass_cpu_platform_probe() could
>>>>
>>>> call?
>>>>
>>>>
>>>>> possibly return NULL pointer. NULL Pointer Dereference may be
>>>>> triggerred without addtional check.
>>>> …
>>>>
>>>> * How do you think about to use the term “null pointer dereference”
>>>> for the final commit message (including the summary phrase)?
>>>>
>>>> * Would you like to avoid any typos here?
>>>>
>>>>
>>>> …
>>>>> ---
>>>>> sound/soc/qcom/lpass-cpu.c | 2 ++
>>>>
>>>> Did you overlook to add a version description behind the marker line?
>>>> https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/tree/Documentation/process/submitting-patches.rst?h=v6.12-rc1#n723
>> …
>>> This is the semi-friendly patch-bot of Greg Kroah-Hartman.
…
>> * Do you care for any spell checking?
>
> No.
I find such a feedback surprising.
Does it indicate any recurring communication difficulties?
>> * Do you find any related advice (from other automated responses) helpful?
>
> No.
I wonder how this answer fits to reminders for the Linux patch review process
(which were also automatically sent) according to your inbox filter rules.
Regards,
Markus
^ permalink raw reply [flat|nested] 14+ messages in thread
* Re: ASoC: qcom: Fix NULL Dereference in asoc_qcom_lpass_cpu_platform_probe()
2024-10-06 11:12 ` Markus Elfring
@ 2024-10-07 12:20 ` Markus Elfring
0 siblings, 0 replies; 14+ messages in thread
From: Markus Elfring @ 2024-10-07 12:20 UTC (permalink / raw)
To: Greg Kroah-Hartman, Zichen Xie, alsa-devel, linux-sound,
linux-arm-msm
Cc: Jaroslav Kysela, Liam Girdwood, Mark Brown, Rohit kumar,
Srinivas Kandagatla, Takashi Iwai, stable, LKML, Chenyuan Yang,
Zijie Zhao
>>> * Do you find any related advice (from other automated responses) helpful?
>>
>> No.
>
> I wonder how this answer fits to reminders for the Linux patch review process
> (which were also automatically sent) according to your inbox filter rules.
See also:
https://lore.kernel.org/all/?q=%22This+looks+like+a+new+version+of+a+previously+submitted+patch%22
Regards,
Markus
^ permalink raw reply [flat|nested] 14+ messages in thread
* Re: [PATCH] ASoC: qcom: Fix NULL Dereference in asoc_qcom_lpass_cpu_platform_probe()
2024-10-03 15:27 ` Gax-c
2024-10-05 15:40 ` Markus Elfring
@ 2024-10-06 20:23 ` Dmitry Baryshkov
1 sibling, 0 replies; 14+ messages in thread
From: Dmitry Baryshkov @ 2024-10-06 20:23 UTC (permalink / raw)
To: Gax-c
Cc: gregkh, broonie, lgirdwood, linux-arm-msm, linux-sound, perex,
tiwai, rohitkr, srinivas.kandagatla, stable, alsa-devel,
chenyuan0y, zzjas98
On Thu, Oct 03, 2024 at 10:27:39AM GMT, Gax-c wrote:
> From: Zichen Xie <zichenxie0106@gmail.com>
>
> A devm_kzalloc() in asoc_qcom_lpass_cpu_platform_probe() could
> possibly return NULL pointer. NULL Pointer Dereference may be
> triggerred without addtional check.
> Add a NULL check for the returned pointer.
>
> Fixes: b5022a36d28f ("ASoC: qcom: lpass: Use regmap_field for i2sctl and dmactl registers")
> Signed-off-by: Zichen Xie <zichenxie0106@gmail.com>
> Cc: stable@vger.kernel.org
I think Fixes / Cc / Signed-off-by is more logical.
> ---
> sound/soc/qcom/lpass-cpu.c | 2 ++
> 1 file changed, 2 insertions(+)
>
This is version two of your patch (even though the patch contents didn't
change). Please tag your patches accordingly, provide a changelog and
don't send next iteration as a reply to the existing thread (it might
get lost or mishandled). Please send a proper v3 of your patch.
--
With best wishes
Dmitry
^ permalink raw reply [flat|nested] 14+ messages in thread
* [PATCH] ASoC: qcom: Fix NULL Dereference in asoc_qcom_lpass_cpu_platform_probe()
@ 2024-10-01 21:02 Gax-c
2024-10-02 5:47 ` Krzysztof Kozlowski
0 siblings, 1 reply; 14+ messages in thread
From: Gax-c @ 2024-10-01 21:02 UTC (permalink / raw)
To: srinivas.kandagatla, lgirdwood, broonie, perex, tiwai, rohitkr
Cc: alsa-devel, linux-arm-msm, linux-sound, linux-kernel, chenyuan0y,
zzjas98, Gax-c, stable
A devm_kzalloc() in asoc_qcom_lpass_cpu_platform_probe() could
possibly return NULL pointer. NULL Pointer Dereference may be
triggerred without addtional check.
Add a NULL check for the returned pointer.
Fixes: b5022a36d28f ("ASoC: qcom: lpass: Use regmap_field for i2sctl and dmactl registers")
Signed-off-by: Zichen Xie <zichenxie0106@gmail.com>
Cc: stable@vger.kernel.org
Reported-by: Zichen Xie <zichenxie0106@gmail.com>
---
sound/soc/qcom/lpass-cpu.c | 2 ++
1 file changed, 2 insertions(+)
diff --git a/sound/soc/qcom/lpass-cpu.c b/sound/soc/qcom/lpass-cpu.c
index 5a47f661e0c6..242bc16da36d 100644
--- a/sound/soc/qcom/lpass-cpu.c
+++ b/sound/soc/qcom/lpass-cpu.c
@@ -1242,6 +1242,8 @@ int asoc_qcom_lpass_cpu_platform_probe(struct platform_device *pdev)
/* Allocation for i2sctl regmap fields */
drvdata->i2sctl = devm_kzalloc(&pdev->dev, sizeof(struct lpaif_i2sctl),
GFP_KERNEL);
+ if (!drvdata->i2sctl)
+ return -ENOMEM;
/* Initialize bitfields for dai I2SCTL register */
ret = lpass_cpu_init_i2sctl_bitfields(dev, drvdata->i2sctl,
--
2.25.1
^ permalink raw reply related [flat|nested] 14+ messages in thread* Re: [PATCH] ASoC: qcom: Fix NULL Dereference in asoc_qcom_lpass_cpu_platform_probe()
2024-10-01 21:02 Gax-c
@ 2024-10-02 5:47 ` Krzysztof Kozlowski
0 siblings, 0 replies; 14+ messages in thread
From: Krzysztof Kozlowski @ 2024-10-02 5:47 UTC (permalink / raw)
To: Gax-c, srinivas.kandagatla, lgirdwood, broonie, perex, tiwai,
rohitkr
Cc: alsa-devel, linux-arm-msm, linux-sound, linux-kernel, chenyuan0y,
zzjas98, stable
On 01/10/2024 23:02, Gax-c wrote:
> A devm_kzalloc() in asoc_qcom_lpass_cpu_platform_probe() could
> possibly return NULL pointer. NULL Pointer Dereference may be
> triggerred without addtional check.
> Add a NULL check for the returned pointer.
>
> Fixes: b5022a36d28f ("ASoC: qcom: lpass: Use regmap_field for i2sctl and dmactl registers")
> Signed-off-by: Zichen Xie <zichenxie0106@gmail.com>
> Cc: stable@vger.kernel.org
> Reported-by: Zichen Xie <zichenxie0106@gmail.com>
Drop, you cannot report own work. To whom do you report it?
Was this compiled? Based on the previous work I have doubts.
Best regards,
Krzysztof
^ permalink raw reply [flat|nested] 14+ messages in thread
* [PATCH] ASoC: qcom: Fix NULL Dereference in asoc_qcom_lpass_cpu_platform_probe()
@ 2024-10-01 0:24 Gax-c
2024-10-01 19:45 ` Krzysztof Kozlowski
0 siblings, 1 reply; 14+ messages in thread
From: Gax-c @ 2024-10-01 0:24 UTC (permalink / raw)
To: srinivas.kandagatla, lgirdwood, broonie, perex, tiwai, rohitkr
Cc: alsa-devel, linux-arm-msm, linux-sound, linux-kernel, stable,
Gax-c, Zijie Zhao, Chenyuan Yang
A devm_kzalloc() in asoc_qcom_lpass_cpu_platform_probe() could possibly return NULL pointer.
NULL Pointer Dereference may be triggerred without addtional check.
Add a NULL check for the returned pointer.
Fixes: b5022a36d28f ("ASoC: qcom: lpass: Use regmap_field for i2sctl and dmactl registers")
Signed-off-by: Zichen Xie <zichenxie0106@gmail.com>
Reported-by: Zichen Xie <zichenxie0106@gmail.com>
Reported-by: Zijie Zhao <zzjas98@gmail.com>
Reported-by: Chenyuan Yang <chenyuan0y@gmail.com>
---
sound/soc/qcom/lpass-cpu.c | 3 +++
1 file changed, 3 insertions(+)
diff --git a/sound/soc/qcom/lpass-cpu.c b/sound/soc/qcom/lpass-cpu.c
index 5a47f661e0c6..a8e56f47f237 100644
--- a/sound/soc/qcom/lpass-cpu.c
+++ b/sound/soc/qcom/lpass-cpu.c
@@ -1243,6 +1243,9 @@ int asoc_qcom_lpass_cpu_platform_probe(struct platform_device *pdev)
drvdata->i2sctl = devm_kzalloc(&pdev->dev, sizeof(struct lpaif_i2sctl),
GFP_KERNEL);
+ if (!drvdata->i2sctl)
+ return -ENOMEM;
+
/* Initialize bitfields for dai I2SCTL register */
ret = lpass_cpu_init_i2sctl_bitfields(dev, drvdata->i2sctl,
drvdata->lpaif_map);
--
2.25.1
^ permalink raw reply related [flat|nested] 14+ messages in thread* Re: [PATCH] ASoC: qcom: Fix NULL Dereference in asoc_qcom_lpass_cpu_platform_probe()
2024-10-01 0:24 Gax-c
@ 2024-10-01 19:45 ` Krzysztof Kozlowski
0 siblings, 0 replies; 14+ messages in thread
From: Krzysztof Kozlowski @ 2024-10-01 19:45 UTC (permalink / raw)
To: Gax-c, srinivas.kandagatla, lgirdwood, broonie, perex, tiwai,
rohitkr
Cc: alsa-devel, linux-arm-msm, linux-sound, linux-kernel, stable,
Zijie Zhao, Chenyuan Yang
On 01/10/2024 02:24, Gax-c wrote:
> A devm_kzalloc() in asoc_qcom_lpass_cpu_platform_probe() could possibly return NULL pointer.
> NULL Pointer Dereference may be triggerred without addtional check.
> Add a NULL check for the returned pointer.
>
> Fixes: b5022a36d28f ("ASoC: qcom: lpass: Use regmap_field for i2sctl and dmactl registers")
> Signed-off-by: Zichen Xie <zichenxie0106@gmail.com>
> Reported-by: Zichen Xie <zichenxie0106@gmail.com>
> Reported-by: Zijie Zhao <zzjas98@gmail.com>
> Reported-by: Chenyuan Yang <chenyuan0y@gmail.com>
Commit still needs improvements.
You ignored also Bjorn's review.
Best regards,
Krzysztof
^ permalink raw reply [flat|nested] 14+ messages in thread
end of thread, other threads:[~2024-10-07 12:20 UTC | newest]
Thread overview: 14+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2024-10-02 16:12 [PATCH] ASoC: qcom: Fix NULL Dereference in asoc_qcom_lpass_cpu_platform_probe() Gax-c
2024-10-03 5:54 ` Greg KH
2024-10-03 15:27 ` Gax-c
2024-10-05 15:40 ` Markus Elfring
2024-10-06 8:29 ` Greg Kroah-Hartman
2024-10-06 8:56 ` Markus Elfring
2024-10-06 10:08 ` Greg Kroah-Hartman
2024-10-06 11:12 ` Markus Elfring
2024-10-07 12:20 ` Markus Elfring
2024-10-06 20:23 ` [PATCH] " Dmitry Baryshkov
-- strict thread matches above, loose matches on Subject: below --
2024-10-01 21:02 Gax-c
2024-10-02 5:47 ` Krzysztof Kozlowski
2024-10-01 0:24 Gax-c
2024-10-01 19:45 ` Krzysztof Kozlowski
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).