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

On Thu, Jan 20, 2022 at 00:46:45AM +0800, Mark Brown wrote:
>> Since the possible failure of the devm_regmap_init_mmio(), it will
>> return error pointer and be assigned to the regmap.
>> Then the error pointer will be dereferenced.
>> For example rx->regmap will be used in rx_macro_mclk_enable().
>> Therefore, it should be better to check it.
>
> This doesn't apply against current code, please check and resend.

I am really sorry.
I have already try my best to find the latest code but fails.
Please give me the url or the git repository.

Sincerely thanks,
Jiang


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

* Re: Re: [PATCH v2] ASoC: codecs: Check for error pointer after calling devm_regmap_init_mmio
  2022-01-20  1:56 Re: [PATCH v2] ASoC: codecs: Check for error pointer after calling devm_regmap_init_mmio Jiasheng Jiang
@ 2022-01-21 16:13 ` Mark Brown
  0 siblings, 0 replies; 2+ messages in thread
From: Mark Brown @ 2022-01-21 16:13 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: 325 bytes --]

On Thu, Jan 20, 2022 at 09:56:50AM +0800, Jiasheng Jiang wrote:

> I am really sorry.
> I have already try my best to find the latest code but fails.
> Please give me the url or the git repository.

In general you can always find this in MAINTAINERS:

git://git.kernel.org/pub/scm/linux/kernel/git/broonie/sound.git for-next

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

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

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

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

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox

all inboxes | Powered by JetHome®