Searched hist:"115 b94d5" (Results 1 – 1 of 1) sorted by relevance
/openbmc/linux/sound/i2c/other/ |
H A D | ak4117.c | 115b94d5 Fri Feb 14 05:47:57 CST 2014 Kirill Tkhai <ktkhai@parallels.com> ALSA: ak4117: Do not free priv until timer handler hasn't actually stopped using it
Function del_timer() does not guarantee that timer was really deleted. If the timer handler is beeing executed at the moment, the function does nothing. So, it's possible to use already freed memory in the handler:
[ref: Documentation/DocBook/kernel-locking.tmpl]
This was found using grep and compile-tested only.
Signed-off-by: Kirill Tkhai <ktkhai@parallels.com> Signed-off-by: Takashi Iwai <tiwai@suse.de> 115b94d5 Fri Feb 14 05:47:57 CST 2014 Kirill Tkhai <ktkhai@parallels.com> ALSA: ak4117: Do not free priv until timer handler hasn't actually stopped using it Function del_timer() does not guarantee that timer was really deleted. If the timer handler is beeing executed at the moment, the function does nothing. So, it's possible to use already freed memory in the handler: [ref: Documentation/DocBook/kernel-locking.tmpl] This was found using grep and compile-tested only. Signed-off-by: Kirill Tkhai <ktkhai@parallels.com> Signed-off-by: Takashi Iwai <tiwai@suse.de>
|