]> git.baikalelectronics.ru Git - kernel.git/commit
media: v4l: async: Fix notifier complete callback error handling
authorSakari Ailus <sakari.ailus@linux.intel.com>
Mon, 2 Oct 2017 10:24:54 +0000 (06:24 -0400)
committerMauro Carvalho Chehab <mchehab@s-opensource.com>
Tue, 31 Oct 2017 16:30:21 +0000 (12:30 -0400)
commite48b11f3b2a4a4119246cd90c402466026bd0b5a
tree89db46c8740ccc47daa22f5ad0f80eb052e08c59
parent4f8bdb34db552ca11637c1f6a239bc267e7dbdbb
media: v4l: async: Fix notifier complete callback error handling

The notifier complete callback may return an error. This error code was
simply returned to the caller but never handled properly.

Move calling the complete callback function to the caller from
v4l2_async_test_notify and undo the work that was done either in async
sub-device or async notifier registration.

Reported-by: Russell King <rmk+kernel@armlinux.org.uk>
Signed-off-by: Sakari Ailus <sakari.ailus@linux.intel.com>
Acked-by: Niklas Söderlund <niklas.soderlund+renesas@ragnatech.se>
Reviewed-by: Sebastian Reichel <sebastian.reichel@collabora.co.uk>
Signed-off-by: Mauro Carvalho Chehab <mchehab@s-opensource.com>
drivers/media/v4l2-core/v4l2-async.c