diff options
author | Dan Carpenter <dan.carpenter@oracle.com> | 2016-10-14 04:32:24 -0300 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2017-01-26 08:24:45 +0100 |
commit | dfe8e5730fa1a91129c65dacf85783fa796d7e0a (patch) | |
tree | b900ed3f8d5bee1c02fa282e22beba373310b138 /tools/perf/scripts/python/call-graph-from-postgresql.py | |
parent | b9dc16170dbf5385a273019175c0576d3224cd36 (diff) |
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: 57b2c0628b60 ("[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>
Diffstat (limited to 'tools/perf/scripts/python/call-graph-from-postgresql.py')
0 files changed, 0 insertions, 0 deletions