Merge "ASoC: msm: Fix invalid pdata access after kfree"
This commit is contained in:
commit
ffbe81b2ed
1 changed files with 1 additions and 1 deletions
|
@ -2909,9 +2909,9 @@ err:
|
|||
gpio_free(pdata->hph_en0_gpio);
|
||||
pdata->hph_en0_gpio = 0;
|
||||
}
|
||||
devm_kfree(&pdev->dev, pdata);
|
||||
if (pdata->snd_card_val != INT_SND_CARD)
|
||||
msm_ext_cdc_deinit(pdata);
|
||||
devm_kfree(&pdev->dev, pdata);
|
||||
return ret;
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue