diff options
| author | 2015-03-25 19:57:26 -0300 | |
|---|---|---|
| committer | 2015-04-02 16:37:21 -0300 | |
| commit | 8b3aff7cdd6c2e7c9a3df755b23525e393195102 (patch) | |
| tree | 51ec63fcd7afa4129baa1dcc0d13891469d861c6 /include/linux/root_dev.h | |
| parent | [media] omap3isp: Fix error handling in probe (diff) | |
[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 <sakari.ailus@iki.fi>
Signed-off-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab@osg.samsung.com>
Diffstat (limited to 'include/linux/root_dev.h')
0 files changed, 0 insertions, 0 deletions
