From: Mauro Carvalho Chehab Date: Fri, 4 Sep 2015 19:08:24 +0000 (-0300) Subject: [media] media-entity: must check media_create_pad_link() X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=77328043d9e6feb12e53a4fc5485cf664d2878e4;p=GitHub%2Fmoto-9609%2Fandroid_kernel_motorola_exynos9610.git [media] media-entity: must check media_create_pad_link() Drivers should check if media_create_pad_link() actually worked. Acked-by: Hans Verkuil Signed-off-by: Mauro Carvalho Chehab --- diff --git a/include/media/media-entity.h b/include/media/media-entity.h index 7128d3b0b848..0c7390d2edae 100644 --- a/include/media/media-entity.h +++ b/include/media/media-entity.h @@ -351,8 +351,9 @@ int media_entity_init(struct media_entity *entity, u16 num_pads, struct media_pad *pads); void media_entity_cleanup(struct media_entity *entity); -int media_create_pad_link(struct media_entity *source, u16 source_pad, - struct media_entity *sink, u16 sink_pad, u32 flags); +__must_check int media_create_pad_link(struct media_entity *source, + 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);