OSDN Git Service

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)
commitfb45f436b8186cafc95939087ce1dc565be26c3d
tree89db46c8740ccc47daa22f5ad0f80eb052e08c59
parent633d185b7239a4b342bab4cc15a414f7d74635ad
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