[media] media: entity: Be vocal about failing sanity checks
authorSakari Ailus <sakari.ailus@linux.intel.com>
Wed, 20 Jul 2016 12:19:03 +0000 (09:19 -0300)
committerMauro Carvalho Chehab <mchehab@s-opensource.com>
Fri, 27 Jan 2017 14:31:32 +0000 (12:31 -0200)
commit12030f489ef87dd879400d65381482a1f2177adc
treea5e91b1c69730f3d897aed04e6030acdc8cfe4c6
parent41387a59c8fd55975c6a26cc12fc5c9ca61fcc0f
[media] media: entity: Be vocal about failing sanity checks

Commit 3801bc7d1b8d ("[media] media: Media Controller fix to not let
stream_count go negative") added a sanity check for negative stream_count,
but a failure of the check remained silent. Make sure the failure is
noticed.

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>
drivers/media/media-entity.c