From: Laurent Pinchart Date: Tue, 6 Sep 2011 22:16:18 +0000 (-0300) Subject: [media] uvcvideo: Fix crash when linking entities X-Git-Tag: v3.1-rc9~16^2~1 X-Git-Url: https://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=4d9b2ebd335d83044b9e6656d0e604e8e1300334;p=pandora-kernel.git [media] uvcvideo: Fix crash when linking entities 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 Signed-off-by: Mauro Carvalho Chehab --- Reading git-diff-tree failed