Wenwen Wang
cfef67f016
ALSA: hda - Fix a memory leak bug
...
In snd_hda_parse_generic_codec(), 'spec' is allocated through kzalloc().
Then, the pin widgets in 'codec' are parsed. However, if the parsing
process fails, 'spec' is not deallocated, leading to a memory leak.
To fix the above issue, free 'spec' before returning the error.
Fixes: 352f7f914e
("ALSA: hda - Merge Realtek parser code to generic parser")
Signed-off-by: Wenwen Wang <wenwen@cs.uga.edu >
Cc: <stable@vger.kernel.org >
Signed-off-by: Takashi Iwai <tiwai@suse.de >
2019-08-10 09:57:22 +02:00
..
2019-05-30 11:26:35 -07:00
2019-05-24 17:37:52 +02:00
2019-07-08 14:45:34 +02:00
2019-07-15 08:53:50 +02:00
2019-06-19 17:09:09 +02:00
2019-05-30 11:26:35 -07:00
2019-05-30 11:26:35 -07:00
2019-05-30 11:26:35 -07:00
2019-06-05 17:37:09 +02:00
2019-07-08 14:45:34 +02:00
2019-07-15 08:54:09 +02:00
2019-08-10 09:57:22 +02:00
2019-06-14 05:37:06 -10:00
2019-05-30 11:26:35 -07:00
2019-05-30 11:26:35 -07:00
2019-07-10 11:53:03 +02:00
2019-05-30 11:26:35 -07:00
2019-05-30 11:26:35 -07:00
2019-06-19 17:09:55 +02:00
2019-05-30 11:26:35 -07:00
2019-05-30 11:26:35 -07:00
2019-07-15 08:54:35 +02:00
2019-05-30 11:26:35 -07:00
2019-05-30 11:26:35 -07:00
2019-05-30 11:26:35 -07:00
2019-05-30 11:29:19 -07:00
2017-11-02 11:10:55 +01:00
2019-05-30 11:26:35 -07:00
2019-05-30 11:26:35 -07:00
2019-05-30 11:26:35 -07:00
2019-05-30 11:26:35 -07:00
2019-05-30 11:26:35 -07:00
2019-05-24 17:39:02 +02:00
2017-11-02 11:10:55 +01:00
2019-05-24 17:27:10 +02:00
2019-05-30 11:26:35 -07:00
2019-07-08 14:45:34 +02:00
2019-05-24 17:39:02 +02:00
2019-05-30 11:26:35 -07:00
2019-05-30 11:26:35 -07:00
2019-05-30 11:26:35 -07:00
2019-05-30 11:26:37 -07:00
2019-05-30 11:26:35 -07:00
2019-05-30 11:26:35 -07:00
2019-05-21 10:50:46 +02:00
2019-05-30 11:26:35 -07:00
2017-11-02 11:10:55 +01:00
2019-05-24 17:36:45 +02:00
2019-05-30 11:26:35 -07:00
2019-06-05 17:30:30 +02:00
2019-06-05 17:30:30 +02:00
2019-05-30 11:26:35 -07:00
2019-05-30 11:26:35 -07:00
2019-05-30 11:26:35 -07:00