diff options
author | Laurent Pinchart <[email protected]> | 2024-01-15 00:24:12 +0200 |
---|---|---|
committer | Hans Verkuil <[email protected]> | 2024-02-05 14:29:34 +0100 |
commit | 422f7af75d03d50895938d38bc9cb8be759c440f (patch) | |
tree | b5d4920ed281036c792882c9dc581e77679ce38a /tools/perf/scripts/python/exported-sql-viewer.py | |
parent | 78f0daa026d4c5e192d31801d1be6caf88250220 (diff) |
media: mc: Fix flags handling when creating pad links
The media_create_pad_link() function doesn't correctly clear reject link
type flags, nor does it set the DATA_LINK flag. It only works because
the MEDIA_LNK_FL_DATA_LINK flag's value is 0.
Fix it by returning an error if any link type flag is set. This doesn't
introduce any regression, as nobody calls the media_create_pad_link()
function with link type flags (easily checked by grepping for the flag
in the source code, there are very few hits).
Set the MEDIA_LNK_FL_DATA_LINK explicitly, which is a no-op that the
compiler will optimize out, but is still useful to make the code more
explicit and easier to understand.
Cc: [email protected] # 6.1
Signed-off-by: Laurent Pinchart <[email protected]>
Acked-by: Sakari Ailus <[email protected]>
Signed-off-by: Hans Verkuil <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python/exported-sql-viewer.py')
0 files changed, 0 insertions, 0 deletions