]> git.baikalelectronics.ru Git - kernel.git/commit
V4L/DVB (7320): pvrusb2: Eliminate timer race during tear-down
authorMike Isely <isely@pobox.com>
Tue, 22 Apr 2008 17:45:45 +0000 (14:45 -0300)
committerMauro Carvalho Chehab <mchehab@infradead.org>
Thu, 24 Apr 2008 17:07:48 +0000 (14:07 -0300)
commitddd3824e2a3ff32f5628c46d7a6044c718ff425f
tree022033f2444f4d07d1f2c2804f79969acf8f6f84
parentc452b0957cb1e64e7f88db5eb43101f9e349c380
V4L/DVB (7320): pvrusb2: Eliminate timer race during tear-down

The pvrusb2 tear-down logic was clearing two timers before stopping
its internal work queue.  That left a tiny window open where the work
queue might run after the timers are stopped, possibly starting them
again.  This could lead to dangling pointers and an oops.  Solution:
Kill the work queue first, then delete the timers.

Signed-off-by: Mike Isely <isely@pobox.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab@infradead.org>
drivers/media/video/pvrusb2/pvrusb2-hdw.c