utils: ipc: Initialise ThreadProxy
The ThreadProxy IPA template does not implement a constructor and the
default compiler generated constructor does not initialise the private
ipa_ pointer.
Whilst this should not be expected to be used while uninitialised, it
does get caught by static analysis for every IPA module constructed, so
lets be clean and fix it.
Reported-by: Coverity CID=350116
Reported-by: Coverity CID=350123
Reported-by: Coverity CID=350140
Reported-by: Coverity CID=350147
Fixes: 7832e19a59
("utils: ipc: add templates for code generation for IPC mechanism")
Reviewed-by: Paul Elder <paul.elder@ideasonboard.com>
Reviewed-by: Umang Jain <umang.jain@ideasonboard.com>
Reviewed-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com>
Signed-off-by: Kieran Bingham <kieran.bingham@ideasonboard.com>
This commit is contained in:
parent
0e8d8fbd4e
commit
2c18ebb859
1 changed files with 5 additions and 0 deletions
|
@ -72,6 +72,11 @@ private:
|
||||||
class ThreadProxy : public Object
|
class ThreadProxy : public Object
|
||||||
{
|
{
|
||||||
public:
|
public:
|
||||||
|
ThreadProxy()
|
||||||
|
: ipa_(nullptr)
|
||||||
|
{
|
||||||
|
}
|
||||||
|
|
||||||
void setIPA({{interface_name}} *ipa)
|
void setIPA({{interface_name}} *ipa)
|
||||||
{
|
{
|
||||||
ipa_ = ipa;
|
ipa_ = ipa;
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue