media: exynos4-is: Check pipe is valid before calling subdev
authorSimon Shields <simon@lineageos.org>
Mon, 27 Nov 2017 13:12:41 +0000 (08:12 -0500)
committerMauro Carvalho Chehab <mchehab@s-opensource.com>
Mon, 18 Dec 2017 20:12:12 +0000 (15:12 -0500)
commit3090a1915e9865d23f2aa76cc01e5b5f9cb6d7e3
treefea120340763d6c187cb1859237554db15859117
parent2d41a0c9ae51ac363d107f2510022106e7234b33
media: exynos4-is: Check pipe is valid before calling subdev

If the subdev is not yet present (probably because the subdev
module has not yet been loaded), the pipe will be NULL. Make sure
that this is not the case before attempting to call the op.

Signed-off-by: Simon Shields <simon@lineageos.org>
Signed-off-by: Sylwester Nawrocki <s.nawrocki@samsung.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab@s-opensource.com>
include/media/drv-intf/exynos-fimc.h