Commit 77328043 authored by Mauro Carvalho Chehab's avatar Mauro Carvalho Chehab

[media] media-entity: must check media_create_pad_link()

Drivers should check if media_create_pad_link() actually
worked.
Acked-by: default avatarHans Verkuil <hans.verkuil@cisco.com>
Signed-off-by: default avatarMauro Carvalho Chehab <mchehab@osg.samsung.com>
parent 4e26f3ab
...@@ -351,8 +351,9 @@ int media_entity_init(struct media_entity *entity, u16 num_pads, ...@@ -351,8 +351,9 @@ int media_entity_init(struct media_entity *entity, u16 num_pads,
struct media_pad *pads); struct media_pad *pads);
void media_entity_cleanup(struct media_entity *entity); void media_entity_cleanup(struct media_entity *entity);
int media_create_pad_link(struct media_entity *source, u16 source_pad, __must_check int media_create_pad_link(struct media_entity *source,
struct media_entity *sink, u16 sink_pad, u32 flags); u16 source_pad, struct media_entity *sink,
u16 sink_pad, u32 flags);
void __media_entity_remove_links(struct media_entity *entity); void __media_entity_remove_links(struct media_entity *entity);
void media_entity_remove_links(struct media_entity *entity); void media_entity_remove_links(struct media_entity *entity);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment