lkml.org 
[lkml]   [2017]   [Aug]   [24]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
    /
    Date
    From
    SubjectRe: [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@rock-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;
    >
    >
    >


    \
     
     \ /
      Last update: 2017-08-24 06:44    [W:3.112 / U:0.184 seconds]
    ©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site