From: Chris Rankin Date: Tue, 6 Feb 2007 23:29:07 +0000 (-0300) Subject: V4L/DVB (5178): Avoid race when deregistering the IR control for dvb-usb X-Git-Tag: v2.6.21-rc2~66^2~8 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=e1af498063007cee5d7ec5af1e0cf25c088d05c7;p=pandora-kernel.git V4L/DVB (5178): Avoid race when deregistering the IR control for dvb-usb The work item function is dvb_usb_read_remote_control(): INIT_WORK(&d->rc_query_work, dvb_usb_read_remote_control, d); and the last piece of work it does is: schedule_delayed_work(&d->rc_query_work,msecs_to_jiffies(d->props.rc_interval)); Hence you need to call "cancel_rearming_delayed_work()" and not "cancel_delayed_work()", correct? I certainly haven't seen this oops reoccur since I applied this patch. Signed-off-by: Andrew Morton Signed-off-by: Mauro Carvalho Chehab --- Reading git-diff-tree failed