[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <599E599C.1060308@rock-chips.com>
Date: Thu, 24 Aug 2017 12:44:12 +0800
From: jeffy <jeffy.chen@...k-chips.com>
To: Donglin Peng <dolinux.peng@...il.com>
CC: linux-kernel@...r.kernel.org, Mark Brown <broonie@...nel.org>,
tiwai@...e.de, Jaroslav Kysela <perex@...ex.cz>,
alsa-devel@...a-project.org, Takashi Iwai <tiwai@...e.com>,
Liam Girdwood <lgirdwood@...il.com>
Subject: Re: [PATCH v2] ASoC: Add a sanity check before using dai driver name
Hi Dong,
Thanks for noticing, will send new patch soon :)
On 08/24/2017 11:46 AM, Donglin Peng wrote:
> On Thu, Aug 24, 2017 at 11:34 AM, Jeffy Chen <jeffy.chen@...k-chips.com> wrote:
>> list_for_each_entry(dai, &component->dai_list, list) {
>> if (dlc->dai_name && strcmp(dai->name, dlc->dai_name)
>> - && strcmp(dai->driver->name, dlc->dai_name))
>> + && (!dai->driver->name
>> + || !strcmp(dai->driver->name, dlc->dai_name))
>> continue;
>
> If the dai->driver->name is match with the dlc->dai_name, does it need
> to continue?
hmm, sorry, i did this in a hurry, should setup my board and test it..
>
>>
>> return dai;
>
>
>
Powered by blists - more mailing lists