Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Skip to content
Commit 9584db3c authored by Aditya Bavanari's avatar Aditya Bavanari
Browse files

asoc: codecs: Fix NULL pointer dereference in wcd9xxx slim probe



When slim device is NULL or pdata allocation fails in wcd9xxx
slim probe, devm_kfree uses slim device leading to a NULL pointer
dereference. Fix this by returning from probe in these scenarios.

Change-Id: I232661d8ba0320469bc4486e7dd82713e9b53d73
Signed-off-by: default avatarAditya Bavanari <abavanar@codeaurora.org>
parent ac2cc545
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment