msm: audio: qdsp6v2: Fix memory leak and error handling
The error handling of apr_reset_workqueue and apr_reset_worker when
NULL should be two seperate checks and hence should have corresponding
appropriate log msgs.
Also there is no need to allocate memory for apr_reset_worker if
apr_reset_workqueue is NULL.
Signed-off-by:
Shiv Maliyappanahalli <smaliyap@codeaurora.org>
Change-Id: I220a23729d0fc6dadce144e476a8b2af727fc6b6
Loading
Please sign in to comment