Merge "sdm660_cdc: Fix NULL pointer dereference in digital suspend"
This commit is contained in:
commit
66c519deb6
1 changed files with 4 additions and 0 deletions
|
@ -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__);
|
||||
|
|
Loading…
Add table
Reference in a new issue