[media] rtl2830: cancel_delayed_work_sync before device removal / kfree
authorErnst Martin Witte <emw-linux-kernel@nocabal.de>
Sat, 9 Jan 2016 20:18:47 +0000 (18:18 -0200)
committerMauro Carvalho Chehab <mchehab@osg.samsung.com>
Mon, 1 Feb 2016 11:42:03 +0000 (09:42 -0200)
commit4fd57ed61564bd4706e71cfd8c5a259079ddabf3
tree4931eac32c89818603f613849f5c55b605a71c3f
parent01d1d714e26624bc50ba95c49cf6e15bb215c150
[media] rtl2830: cancel_delayed_work_sync before device removal / kfree

rtl2830_remove  was  calling  kfree(dev) with  possibly  still  active
schedule_delayed_work(&dev->stat_work).   A  similar   bug  in  si2157
caused kernel panics in call_timer_fn e.g. after rmmod cx23885.

Signed-off-by: Ernst Martin Witte <emw-linux-kernel@nocabal.de>
Signed-off-by: Mauro Carvalho Chehab <mchehab@osg.samsung.com>
drivers/media/dvb-frontends/rtl2830.c