From: Sakari Ailus Date: Wed, 25 Mar 2015 22:57:26 +0000 (-0300) Subject: [media] omap3isp: Avoid a BUG_ON() in media_entity_create_link() X-Git-Tag: omap-for-v4.1/fixes-rc1~72^2~1^2~264 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=8b3aff7cdd6c2e7c9a3df755b23525e393195102;p=pandora-kernel.git [media] omap3isp: Avoid a BUG_ON() in media_entity_create_link() If an uninitialised v4l2_subdev struct was passed to media_entity_create_link(), one of the BUG_ON()'s in the function will be hit since media_entity.num_pads will be zero. Avoid this by checking whether the num_pads field is non-zero for the interface. Signed-off-by: Sakari Ailus Signed-off-by: Laurent Pinchart Signed-off-by: Mauro Carvalho Chehab --- Reading git-diff-tree failed