[<prev] [next>] [thread-next>] [day] [month] [year] [list]
Message-Id: <20220120015650.1851703-1-jiasheng@iscas.ac.cn>
Date:   Thu, 20 Jan 2022 09:56:50 +0800
From:   Jiasheng Jiang <jiasheng@...as.ac.cn>
To:     broonie@...nel.org
Cc:     cezary.rojewski@...el.com, srinivas.kandagatla@...aro.org,
        bgoswami@...eaurora.org, lgirdwood@...il.com, perex@...ex.cz,
        tiwai@...e.com, alsa-devel@...a-project.org,
        linux-kernel@...r.kernel.org, Jiasheng Jiang <jiasheng@...as.ac.cn>
Subject: Re: Re: [PATCH v2] ASoC: codecs: Check for error pointer after calling devm_regmap_init_mmio
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
Powered by blists - more mailing lists