soc: qcom: subsys-pil-tz: Initialize subsys_dev pointer
Without this pointer being correctly initialized, subsys_set_error() would end up accessing invalid memory Change-Id: Ic62224e830d17c25f2bf9eeeecc81422fc0d5906 Signed-off-by: Srivatsa Vaddagiri <vatsa@codeaurora.org>
This commit is contained in:
parent
2bfc0eda7e
commit
616d69980a
1 changed files with 1 additions and 0 deletions
|
@ -1113,6 +1113,7 @@ static int pil_tz_driver_probe(struct platform_device *pdev)
|
|||
rc = PTR_ERR(d->subsys);
|
||||
goto err_subsys;
|
||||
}
|
||||
d->desc.subsys_dev = d->subsys;
|
||||
|
||||
return 0;
|
||||
err_subsys:
|
||||
|
|
Loading…
Add table
Reference in a new issue