linux-stable/drivers/media
Sakari Ailus 41387a59c8 [media] media: entity: Fix stream count check
There's a sanity check for the stream count remaining positive or zero on
error path, but instead of performing the check on the traversed entity it
is performed on the entity where traversal ends. Fix this.

Fixes: commit 3801bc7d1b ("[media] media: Media Controller fix to not let stream_count go negative")

Signed-off-by: Sakari Ailus <sakari.ailus@linux.intel.com>
Reviewed-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab@s-opensource.com>
2017-01-27 12:23:19 -02:00
..
cec [media] cec: fix race between configuring and unconfiguring 2016-12-21 07:03:27 -02:00
common [media] media: Drop FSF's postal address from the source code files 2017-01-27 11:38:09 -02:00
dvb-core [media] media: Drop FSF's postal address from the source code files 2017-01-27 11:38:09 -02:00
dvb-frontends [media] media: Drop FSF's postal address from the source code files 2017-01-27 11:38:09 -02:00
firewire [media] firewire: don't break long lines 2016-10-21 10:06:00 -02:00
i2c [media] media: Drop FSF's postal address from the source code files 2017-01-27 11:38:09 -02:00
mmc
pci [media] media: Drop FSF's postal address from the source code files 2017-01-27 11:38:09 -02:00
platform [media] media: Drop FSF's postal address from the source code files 2017-01-27 11:38:09 -02:00
radio [media] media: Drop FSF's postal address from the source code files 2017-01-27 11:38:09 -02:00
rc [media] media: Drop FSF's postal address from the source code files 2017-01-27 11:38:09 -02:00
spi [media] gs1662: drop kfree for memory allocated with devm_kzalloc 2016-10-24 17:59:08 -02:00
tuners [media] media: Drop FSF's postal address from the source code files 2017-01-27 11:38:09 -02:00
usb [media] media: Drop FSF's postal address from the source code files 2017-01-27 11:38:09 -02:00
v4l2-core [media] media: Drop FSF's postal address from the source code files 2017-01-27 11:38:09 -02:00
cec-edid.c
Kconfig [media] Kconfig: fix breakages when DVB_CORE is not selected 2016-11-18 17:59:17 -02:00
Makefile [media] cec: move the CEC framework out of staging and to media 2016-11-16 15:40:20 -02:00
media-device.c [media] media: Drop FSF's postal address from the source code files 2017-01-27 11:38:09 -02:00
media-devnode.c [media] media: Drop FSF's postal address from the source code files 2017-01-27 11:38:09 -02:00
media-entity.c [media] media: entity: Fix stream count check 2017-01-27 12:23:19 -02:00