commit | 01f52b5c95844f6b12a333b72cc2e24305072179 | [log] [tgz] |
---|---|---|
author | Anand Mohan <quic_anamoh@quicinc.com> | Mon Jul 10 20:00:56 2023 +0530 |
committer | Gerrit - the friendly Code Review server <code-review@localhost> | Tue Jul 25 22:05:34 2023 -0700 |
tree | 1102c8b7d2d598bf2777b7279a208fb74889e416 | |
parent | b54a86315ea4c8de2bdf42dedbd9116d6a325619 [diff] |
pal: pass valid pal_device structure to streamDevSwitch function Passing address of a locally scoped pal_device structure to other functions will lead to garbage value when dereferenced as the adrress will not be valid outside the scope. Fixed this by declaring the structure in the main scope of the function. Change-Id: I2e1ea6f0fd22555337f9c51b589e3d898882c9b0