mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-07 20:33:58 -04:00
asoc: destroy mutex during module_exit
Mutexes are initialized, but not destroyed, add destruction in exit routines. Change-Id: Ia45c604141f4f03403a765e0d10ff0b86b25885e Signed-off-by: ftong <quic_ftong@quicinc.com>
This commit is contained in:
parent
5be9ed037a
commit
1a2ec5b372
3 changed files with 7 additions and 0 deletions
|
|
@ -1524,6 +1524,7 @@ int __init msm_voice_host_init(void)
|
|||
void msm_voice_host_exit(void)
|
||||
{
|
||||
platform_driver_unregister(&msm_pcm_driver);
|
||||
mutex_destroy(&hpcm_drv.lock);
|
||||
}
|
||||
|
||||
MODULE_DESCRIPTION("PCM module platform driver");
|
||||
|
|
|
|||
|
|
@ -850,7 +850,12 @@ int __init msm_pcm_voice_init(void)
|
|||
|
||||
void msm_pcm_voice_exit(void)
|
||||
{
|
||||
int i = 0;
|
||||
|
||||
platform_driver_unregister(&msm_pcm_driver);
|
||||
|
||||
for (i = 0; i < VOICE_SESSION_INDEX_MAX; i++)
|
||||
mutex_destroy(&voice_info[i].lock);
|
||||
}
|
||||
|
||||
MODULE_DESCRIPTION("Voice PCM module platform driver");
|
||||
|
|
|
|||
|
|
@ -1699,6 +1699,7 @@ int __init msm_pcm_voip_init(void)
|
|||
void msm_pcm_voip_exit(void)
|
||||
{
|
||||
platform_driver_unregister(&msm_pcm_driver);
|
||||
mutex_destroy(&voip_info.lock);
|
||||
}
|
||||
|
||||
MODULE_DESCRIPTION("PCM module platform driver");
|
||||
|
|
|
|||
Loading…
Reference in a new issue