diff options
| author | Anshuman Kar <anshumank@nvidia.com> | 2018-05-07 16:40:49 -0400 |
|---|---|---|
| committer | mobile promotions <svcmobile_promotions@nvidia.com> | 2018-05-10 14:43:18 -0400 |
| commit | 10625366899cc87b087222fc796dfe60f1daddf8 (patch) | |
| tree | a5fd54c79d4339b9faf1210304c3b5fd30ad8eb0 /include/linux/platform_data | |
| parent | 7948916f7d91661e0f19d00a827e3a35f82242ce (diff) | |
hda: remove dependency of destroy on enable
In hda_destroy, we access several components
of hda_inst struct which are initialized in
hda_enable.
In hda destroy, the sor ctrl num was being
accessed through the hda pointer inside
hda_inst struct.
This is incorrect since hda_inst struct
gets intiialized during hda_enable and not
hda_init. Thus in case we go throguh init and
destroy without accessing enable and disable,
we will be accessing pointers not yet
initialized.
Furthermore, adding a initialized flag to
hda_inst struct. Earlier we were de-allocating
hda_inst on the basis on the valid flag
initialized in hda_enable. This is incorrect
in scenarios where hda_enable is not
called.
Removing these dependencies using variables
initialized during hda init.
TDS-3074
Change-Id: Ic5a69ebd7ad91b131288a16f3da49e1e325e2309
Signed-off-by: Anshuman Kar <anshumank@nvidia.com>
Reviewed-on: https://git-master.nvidia.com/r/1709857
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Mohan Kumar D <mkumard@nvidia.com>
Reviewed-by: svc-mobile-coverity <svc-mobile-coverity@nvidia.com>
GVS: Gerrit_Virtual_Submit
Reviewed-by: Ujwal Patel <ujwalp@nvidia.com>
Reviewed-by: Aron Wong <awong@nvidia.com>
Reviewed-by: mobile promotions <svcmobile_promotions@nvidia.com>
Tested-by: mobile promotions <svcmobile_promotions@nvidia.com>
Diffstat (limited to 'include/linux/platform_data')
0 files changed, 0 insertions, 0 deletions
