From: Kirill Tkhai Date: Fri, 14 Feb 2014 11:47:57 +0000 (+0400) Subject: ALSA: ak4117: Do not free priv until timer handler hasn't actually stopped using it X-Git-Tag: v3.15-rc1~142^2~3^2~69 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=115b94d51a3ee1b7dfffa74f77e20cd11da70b91;p=pandora-kernel.git 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 Signed-off-by: Takashi Iwai --- Reading git-diff-tree failed