V4L/DVB (11652): au0828: fix kernel oops regression on USB disconnect.
authorDevin Heitmueller <dheitmueller@linuxtv.org>
Tue, 28 Apr 2009 16:14:07 +0000 (13:14 -0300)
committerMauro Carvalho Chehab <mchehab@redhat.com>
Wed, 29 Apr 2009 19:02:51 +0000 (16:02 -0300)
commitfe78a49c8ae009d33d6e2c80d4f7f2634440d523
treeead4af63302bbf6790167789fa0778cc640466c9
parentd4dc673da9a94716ca2410306c1b36b5faf6c4cc
V4L/DVB (11652): au0828: fix kernel oops regression on USB disconnect.

A regression was introduced in hg changeset 33810c734a0d, which resulted in
a kernel panic whenever the device was disconnected from USB.  The call to
4l2_device_register() was overwriting the pointer for usb_set_intfdata(), so
when au0828_usb_disconnect() was called, the usb_get_intfdata() returned a
pointer to the v4l2_device instead of the au0828_dev structure.

Signed-off-by: Devin Heitmueller <dheitmueller@linuxtv.org>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
drivers/media/video/au0828/au0828-core.c