OSDN Git Service

V4L/DVB: pvrusb2: Fix kernel oops at device unregistration
authorMike Isely <isely@pobox.com>
Sat, 15 May 2010 03:15:38 +0000 (00:15 -0300)
committerMauro Carvalho Chehab <mchehab@redhat.com>
Tue, 1 Jun 2010 04:19:52 +0000 (01:19 -0300)
commitd72baad3f0e59041d68db7524537046e3a4121a2
tree80556b09be921c6cfee98c6c70595e86bf5f1060
parent8fd0444817e557568d8bddd77828d9ae0d606e04
V4L/DVB: pvrusb2: Fix kernel oops at device unregistration

pvrusb2: Fix oops caused by touching deleted memory after
unregistration.  This bug was introduced when we had started using
video_device_node_name() - that function was being called potentially
after the underlying structure (referenced by that function) had been
deleted.  The fix rearranges things slightly so that the function is
called before destruction takes place.

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