diff options
author | Wenwen Wang <wenwen@cs.uga.edu> | 2019-08-06 03:00:27 -0400 |
---|---|---|
committer | Takashi Iwai <tiwai@suse.de> | 2019-08-06 12:44:44 +0200 |
commit | a67060201b746a308b1674f66bf289c9faef6d09 (patch) | |
tree | d87075ec063df5a0a5fd98c92a708bbfa7cb2b36 /.mailmap | |
parent | d1d03306659d24cba3f594bbbb11a22ef32f45fe (diff) |
ALSA: usb-audio: fix a memory leak bug
In snd_usb_get_audioformat_uac3(), a structure for channel maps 'chmap' is
allocated through kzalloc() before the execution goto 'found_clock'.
However, this structure is not deallocated if the memory allocation for
'pd' fails, leading to a memory leak bug.
To fix the above issue, free 'fp->chmap' before returning NULL.
Fixes: 7edf3b5e6a45 ("ALSA: usb-audio: AudioStreaming Power Domain parsing")
Signed-off-by: Wenwen Wang <wenwen@cs.uga.edu>
Cc: <stable@vger.kernel.org>
Signed-off-by: Takashi Iwai <tiwai@suse.de>
Diffstat (limited to '.mailmap')
0 files changed, 0 insertions, 0 deletions