[media] uvcvideo: Fix crash when linking entities
authorLaurent Pinchart <laurent.pinchart@ideasonboard.com>
Tue, 6 Sep 2011 22:16:18 +0000 (19:16 -0300)
committerMauro Carvalho Chehab <mchehab@redhat.com>
Thu, 22 Sep 2011 01:18:07 +0000 (22:18 -0300)
The uvc_mc_register_entity() function wrongfully selects the
media_entity associated with a UVC entity when creating links. This
results in access to uninitialized media_entity structures and can hit a
BUG_ON statement in media_entity_create_link(). Fix it.

Signed-off-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>

No differences found