]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit8bf53677bbb10cf2a8ce9feefe25daa75c4cd8d1
tree80556b09be921c6cfee98c6c70595e86bf5f1060
parent2834904151328d3e08fcf33fedf43a885e342118
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