diff options
author | Zhang Xiaoxu <zhangxiaoxu5@huawei.com> | 2020-11-16 15:18:01 +0100 |
---|---|---|
committer | Mauro Carvalho Chehab <mchehab+huawei@kernel.org> | 2020-12-03 07:37:33 +0100 |
commit | eb08c48132a1f594478ab9fa2b6ee646c3513a49 (patch) | |
tree | e2c6cf94cb38b688a1c2c800c10cb941d06c6564 /include | |
parent | media: cx88: use ARRAY_SIZE (diff) | |
download | linux-eb08c48132a1f594478ab9fa2b6ee646c3513a49.tar.xz linux-eb08c48132a1f594478ab9fa2b6ee646c3513a49.zip |
media: tvp5150: Fix wrong return value of tvp5150_parse_dt()
If of_graph_get_endpoint_by_regs() return NULL, it will return 0 rather
than an errno, because we doesn't initialize the return value.
Fixes: 0556f1d580d4 ("media: tvp5150: add input source selection of_graph support")
Reported-by: Hulk Robot <hulkci@huawei.com>
Signed-off-by: Zhang Xiaoxu <zhangxiaoxu5@huawei.com>
Reviewed-by: Marco Felsch <m.felsch@pengutronix.de>
Signed-off-by: Hans Verkuil <hverkuil-cisco@xs4all.nl>
Signed-off-by: Mauro Carvalho Chehab <mchehab+huawei@kernel.org>
Diffstat (limited to 'include')
0 files changed, 0 insertions, 0 deletions