exynos-linux-stable/drivers/media/platform/sti
Dan Carpenter dfe8e5730f st-hva: fix some error handling in hva_hw_probe()
commit 6b2bed891253c08e7f4c17dbd46b71fc87f22eef upstream.

The devm_ioremap_resource() returns error pointers, never NULL.  The
platform_get_resource() returns NULL on error, never error pointers.
The error code needs to be set, as well.  The current code returns
PTR_ERR(NULL) which is success.

Fixes: 57b2c0628b ("[media] st-hva: multi-format video encoder V4L2 driver")

Signed-off-by: Dan Carpenter <dan.carpenter@oracle.com>
Acked-by: Jean-Christophe Trotin <jean-christophe.trotin@st.com>
Signed-off-by: Hans Verkuil <hans.verkuil@cisco.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab@s-opensource.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
2017-01-26 08:24:45 +01:00
..
bdisp [media] platform: constify vb2_ops structures 2016-09-19 16:21:06 -03:00
c8sectpfe [media] c8sectpfe: fix memory leak 2016-07-12 20:14:38 -03:00
hva st-hva: fix some error handling in hva_hw_probe() 2017-01-26 08:24:45 +01:00