mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-28 10:41:38 -04:00
[ALSA] Fix / clean up PCM-OSS setup hooks
- Fix possible race of referring the setup hook from the running PCM - Fix memory leak in an error path of proc write - Clean up the setup hook parser Signed-off-by: Takashi Iwai <[email protected]>
This commit is contained in:
parent
3bf75f9b90
commit
060d77b9c0
2 changed files with 64 additions and 71 deletions
|
|
@ -69,7 +69,7 @@ struct snd_pcm_oss_file {
|
|||
|
||||
struct snd_pcm_oss_substream {
|
||||
unsigned oss: 1; /* oss mode */
|
||||
struct snd_pcm_oss_setup *setup; /* active setup */
|
||||
struct snd_pcm_oss_setup setup; /* active setup */
|
||||
};
|
||||
|
||||
struct snd_pcm_oss_stream {
|
||||
|
|
|
|||
Loading…
Reference in a new issue