]> www.infradead.org Git - users/jedix/linux-maple.git/commit
uvcvideo: Fix crash when linking entities
authorLaurent Pinchart <laurent.pinchart@ideasonboard.com>
Tue, 6 Sep 2011 22:16:18 +0000 (19:16 -0300)
committerMaxim Uvarov <maxim.uvarov@oracle.com>
Thu, 8 Dec 2011 19:17:05 +0000 (11:17 -0800)
commitce0a5e1b6975d21b61f54ed61e77d79cb5cebd9e
tree1770021c2c8ce5810206de91cc39b1291170988d
parent976fb066148e0cec1382caee69a00aa7e51b3009
uvcvideo: Fix crash when linking entities

commit 4d9b2ebd335d83044b9e6656d0e604e8e1300334 upstream.

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>
Cc: Josh Boyer <jwboyer@redhat.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
drivers/media/video/uvc/uvc_entity.c