]> pilppa.com Git - linux-2.6-omap-h63xx.git/commit
V4L/DVB (11277): tvaudio: always call init_timer to prevent rmmod crash.
authorHans Verkuil <hverkuil@xs4all.nl>
Thu, 19 Mar 2009 19:53:32 +0000 (16:53 -0300)
committerMauro Carvalho Chehab <mchehab@redhat.com>
Mon, 30 Mar 2009 15:43:46 +0000 (12:43 -0300)
commite4129a9ccea54e8f4fbc408476120059809a4627
tree00b1544084df8fec5252ba8f7032c085c5b42402
parent411674fd189abe5910ea4caf08b7eac5c4a4d967
V4L/DVB (11277): tvaudio: always call init_timer to prevent rmmod crash.

In the tvaudio_remove function del_timer_sync(&chip->wt) is called.
However, chip->wt isn't always initialized depending on the type of
audio chip. Since del_timer_sync hangs when given an uninitialized timer
we should always initialize it.

Signed-off-by: Hans Verkuil <hverkuil@xs4all.nl>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
drivers/media/video/tvaudio.c