[alsa-devel] [PATCH v5 2/9] ASoC: soc-core: Allow searching dai driver name in snd_soc_find_dai

Mark Brown broonie at kernel.org
Tue Aug 22 16:02:55 CEST 2017


On Tue, Aug 22, 2017 at 09:24:32PM +0800, Donglin Peng wrote:

> In case that dai->driver->name is NULL, strcmp(dai->driver->name,
> dlc->dai_name) will cause segmentation fault.
> so I think that we can change it as the follows:

We should be already verifying that drivers have a name, we assume one
elsewhere.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 488 bytes
Desc: not available
URL: <http://mailman.alsa-project.org/pipermail/alsa-devel/attachments/20170822/9968f8ad/attachment.sig>


More information about the Alsa-devel mailing list