diff options
| author | Dan Carpenter <[email protected]> | 2016-10-14 04:32:24 -0300 |
|---|---|---|
| committer | Mauro Carvalho Chehab <[email protected]> | 2016-11-16 13:05:36 -0200 |
| commit | 6b2bed891253c08e7f4c17dbd46b71fc87f22eef (patch) | |
| tree | 84f9ebc73aea14152802d5992a5afb147c6332a7 /tools/perf/scripts/python/stackcollapse.py | |
| parent | eadf081146ec327d6fbbb6aff28e3d9aac329dc6 (diff) | |
[media] st-hva: fix some error handling in hva_hw_probe()
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 <[email protected]>
Acked-by: Jean-Christophe Trotin <[email protected]>
Signed-off-by: Hans Verkuil <[email protected]>
Signed-off-by: Mauro Carvalho Chehab <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python/stackcollapse.py')
0 files changed, 0 insertions, 0 deletions