Merge "sdm660_cdc: Fix NULL pointer dereference in digital suspend"

This commit is contained in:
Linux Build Service Account 2018-06-27 14:44:14 -07:00 committed by Gerrit - the friendly Code Review server
commit 66c519deb6

View file

@ -2157,6 +2157,10 @@ static int msm_dig_suspend(struct device *dev)
pr_debug("%s:digcodec not initialized, return\n", __func__);
return 0;
}
if (!registered_digcodec->component.card) {
pr_debug("%s:component not initialized, return\n", __func__);
return 0;
}
pdata = snd_soc_card_get_drvdata(registered_digcodec->component.card);
if (!pdata) {
pr_debug("%s:card not initialized, return\n", __func__);