[PATCH v2] soundwire: intel_init: test link->cdns

Vinod Koul vkoul at kernel.org
Tue Apr 6 06:56:55 CEST 2021


On 06-04-21, 09:01, Bard Liao wrote:
> intel_link_probe() could return error and dev_get_drvdata() will return
> null in such case. So we have to test link->cdns after
> link->cdns = dev_get_drvdata(&ldev->auxdev.dev);
> Otherwise, we will meet the "kernel NULL pointer dereference" error.

Applied, thanks

-- 
~Vinod


More information about the Alsa-devel mailing list