]> asedeno.scripts.mit.edu Git - linux.git/commit
media: v4l2-async: Safely clean up an uninitialised notifier
authorSakari Ailus <sakari.ailus@linux.intel.com>
Mon, 4 Mar 2019 09:29:49 +0000 (04:29 -0500)
committerMauro Carvalho Chehab <mchehab+samsung@kernel.org>
Thu, 25 Jul 2019 15:00:06 +0000 (11:00 -0400)
commitd1e164289e55de90fcc5680f459a43972430a28d
treea2d0da1748bb39692f9fa0bce740a9a044d3b337
parent2ea4cfc9a7163b48514361cb02d46b0546dfcc86
media: v4l2-async: Safely clean up an uninitialised notifier

Make the V4L2 async framework a bit more robust by allowing to clean up an
uninitialised notifier. Otherwise the result would be a (close to) NULL
pointer dereference.

Signed-off-by: Sakari Ailus <sakari.ailus@linux.intel.com>
Tested-by: Niklas Söderlund <niklas.soderlund+renesas@ragnatech.se>
Signed-off-by: Mauro Carvalho Chehab <mchehab+samsung@kernel.org>
drivers/media/v4l2-core/v4l2-async.c