linux-xiaomi-chiron/drivers/media/mc
Hans Verkuil 044041cd52 media: mc-entity.c: use & to check pad flags, not ==
These are bits so to test if a pad is a sink you use & but not ==.

It looks like the only reason this hasn't caused problems before is that
media_get_pad_index() is currently only used with pads that do not set the
MEDIA_PAD_FL_MUST_CONNECT flag. So a pad really had only the SINK or SOURCE
flag set and nothing else.

Signed-off-by: Hans Verkuil <hverkuil-cisco@xs4all.nl>
Cc: <stable@vger.kernel.org>      # for v5.3 and up
Signed-off-by: Mauro Carvalho Chehab <mchehab+huawei@kernel.org>
2020-02-24 15:10:04 +01:00
..
Kconfig
Makefile
mc-dev-allocator.c
mc-device.c media: mc-device.c: fix memleak in media_device_register_entity 2019-10-01 12:26:35 -03:00
mc-devnode.c Linux 5.2-rc4 2019-06-11 12:09:28 -04:00
mc-entity.c media: mc-entity.c: use & to check pad flags, not == 2020-02-24 15:10:04 +01:00
mc-request.c