All of lore.kernel.org
 help / color / mirror / Atom feed
* Re: Re: [PATCH] ASoC: codecs: Check for error pointer after calling devm_regmap_init_mmio
@ 2022-01-13  1:56 ` Jiasheng Jiang
  0 siblings, 0 replies; 4+ messages in thread
From: Jiasheng Jiang @ 2022-01-13  1:56 UTC (permalink / raw)
  To: broonie
  Cc: cezary.rojewski, srinivas.kandagatla, bgoswami, lgirdwood, perex,
	tiwai, alsa-devel, linux-kernel, Jiasheng Jiang

On Wed, Jan 12, 2022 at 10:20:34PM +0800, Mark Brown wrote:
>> The devm_regmap_init_mmio() may return error pointer under certain
>> circumstances, for example the possible failure of the kzalloc() in
>> regmap_mmio_gen_context(), which is called by devm_regmap_init_mmio().
>
> This doesn't apply against current code, please check and resend.

I checked linux-5.16, and don't think what I said is not against the
latest code.
The devm_regmap_init_mmio() is defined as devm_regmap_init_mmio_clk()
in `include/linux/regmap.h`.
And in the same file, the devm_regmap_init_mmio_clk() is defined as
__devm_regmap_init_mmio_clk().
Then, __devm_regmap_init_mmio_clk() -> regmap_mmio_gen_context() ->
kzalloc().
So I have no idea what's wrong.
Maybe I didn't write the commit message clear.
Please give me more detail.

Sincerely thanks,
Jiang


^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: Re: [PATCH] ASoC: codecs: Check for error pointer after calling devm_regmap_init_mmio
@ 2022-01-13  1:56 ` Jiasheng Jiang
  0 siblings, 0 replies; 4+ messages in thread
From: Jiasheng Jiang @ 2022-01-13  1:56 UTC (permalink / raw)
  To: broonie
  Cc: cezary.rojewski, bgoswami, alsa-devel, linux-kernel,
	Jiasheng Jiang, tiwai, lgirdwood, srinivas.kandagatla

On Wed, Jan 12, 2022 at 10:20:34PM +0800, Mark Brown wrote:
>> The devm_regmap_init_mmio() may return error pointer under certain
>> circumstances, for example the possible failure of the kzalloc() in
>> regmap_mmio_gen_context(), which is called by devm_regmap_init_mmio().
>
> This doesn't apply against current code, please check and resend.

I checked linux-5.16, and don't think what I said is not against the
latest code.
The devm_regmap_init_mmio() is defined as devm_regmap_init_mmio_clk()
in `include/linux/regmap.h`.
And in the same file, the devm_regmap_init_mmio_clk() is defined as
__devm_regmap_init_mmio_clk().
Then, __devm_regmap_init_mmio_clk() -> regmap_mmio_gen_context() ->
kzalloc().
So I have no idea what's wrong.
Maybe I didn't write the commit message clear.
Please give me more detail.

Sincerely thanks,
Jiang


^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: Re: [PATCH] ASoC: codecs: Check for error pointer after calling devm_regmap_init_mmio
  2022-01-13  1:56 ` Jiasheng Jiang
@ 2022-01-13 13:11   ` Mark Brown
  -1 siblings, 0 replies; 4+ messages in thread
From: Mark Brown @ 2022-01-13 13:11 UTC (permalink / raw)
  To: Jiasheng Jiang
  Cc: cezary.rojewski, srinivas.kandagatla, bgoswami, lgirdwood, perex,
	tiwai, alsa-devel, linux-kernel

[-- Attachment #1: Type: text/plain, Size: 486 bytes --]

On Thu, Jan 13, 2022 at 09:56:07AM +0800, Jiasheng Jiang wrote:
> On Wed, Jan 12, 2022 at 10:20:34PM +0800, Mark Brown wrote:

> > This doesn't apply against current code, please check and resend.

> I checked linux-5.16, and don't think what I said is not against the
> latest code.

No, that's several months out of date - you should be submitting against
the current development version.  At this point v5.16 is released and
the bulk of the changes for v5.17 have already been sent.

[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 488 bytes --]

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: Re: [PATCH] ASoC: codecs: Check for error pointer after calling devm_regmap_init_mmio
@ 2022-01-13 13:11   ` Mark Brown
  0 siblings, 0 replies; 4+ messages in thread
From: Mark Brown @ 2022-01-13 13:11 UTC (permalink / raw)
  To: Jiasheng Jiang
  Cc: cezary.rojewski, bgoswami, alsa-devel, linux-kernel, tiwai,
	lgirdwood, srinivas.kandagatla

[-- Attachment #1: Type: text/plain, Size: 486 bytes --]

On Thu, Jan 13, 2022 at 09:56:07AM +0800, Jiasheng Jiang wrote:
> On Wed, Jan 12, 2022 at 10:20:34PM +0800, Mark Brown wrote:

> > This doesn't apply against current code, please check and resend.

> I checked linux-5.16, and don't think what I said is not against the
> latest code.

No, that's several months out of date - you should be submitting against
the current development version.  At this point v5.16 is released and
the bulk of the changes for v5.17 have already been sent.

[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 488 bytes --]

^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2022-01-13 13:13 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2022-01-13  1:56 Re: [PATCH] ASoC: codecs: Check for error pointer after calling devm_regmap_init_mmio Jiasheng Jiang
2022-01-13  1:56 ` Jiasheng Jiang
2022-01-13 13:11 ` Mark Brown
2022-01-13 13:11   ` Mark Brown

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.