summaryrefslogtreecommitdiff
path: root/drivers/base/platform-msi.c
diff options
context:
space:
mode:
authorBard Liao <yung-chuan.liao@linux.intel.com>2021-04-06 04:01:01 +0300
committerVinod Koul <vkoul@kernel.org>2021-04-06 07:56:44 +0300
commit14968dd36a507866be0edfc2a05d48c997da5d99 (patch)
tree25f529b4d55e29e032b9f555d12a721845b01614 /drivers/base/platform-msi.c
parente729e0fdc63d8f22cbce61159cee88c04e42b3e2 (diff)
downloadlinux-14968dd36a507866be0edfc2a05d48c997da5d99.tar.xz
soundwire: intel_init: test link->cdns
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. Signed-off-by: Bard Liao <yung-chuan.liao@linux.intel.com> Reviewed-by: Ranjani Sridharan <ranjani.sridharan@linux.intel.com> Reviewed-by: Rander Wang <rander.wang@intel.com> Reviewed-by: Pierre-Louis Bossart <pierre-louis.bossart@linux.intel.com> Link: https://lore.kernel.org/r/20210406010101.11442-1-yung-chuan.liao@linux.intel.com Signed-off-by: Vinod Koul <vkoul@kernel.org>
Diffstat (limited to 'drivers/base/platform-msi.c')
0 files changed, 0 insertions, 0 deletions