]> git.baikalelectronics.ru Git - kernel.git/commit
V4L/DVB (6548): pvrusb2: Fix oops on module removal
authorMike Isely <isely@pobox.com>
Sat, 3 Nov 2007 03:06:42 +0000 (00:06 -0300)
committerMauro Carvalho Chehab <mchehab@infradead.org>
Sun, 4 Nov 2007 23:41:30 +0000 (21:41 -0200)
commit417efb0c9a1edd176ede2384b61ac28082554270
treeaea1066d6df027b5a194d5367fab0bd3b7841c80
parent129a6ec6f2838eac40865d72ffd55dcac8cefb64
V4L/DVB (6548): pvrusb2: Fix oops on module removal

The pvrusb2 driver is tearing down its sysfs related pieces in the
incorrect order.  This leaves dangling pointers which causes the
kernel device core to oops.  The problem has been present virtually
forever but became malignant with the changeover to the way of
handling /sys/class.  Fix is just to make sure we don't tear down the
class structure until AFTER the driver instances are deregistered.

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