aboutsummaryrefslogtreecommitdiff
path: root/tools/perf/scripts/python/bin/export-to-postgresql-report
diff options
context:
space:
mode:
authorJacopo Mondi <[email protected]>2018-08-03 12:40:58 +0200
committerMauro Carvalho Chehab <[email protected]>2018-09-12 06:44:01 -0400
commit9d2ac5f4bec00a0697ab77c999ef38753b3cb900 (patch)
tree9535241f16c9267f4a121ab80a08cfe3c52fa690 /tools/perf/scripts/python/bin/export-to-postgresql-report
parent3799eca51c5be3cd76047a582ac52087373b54b3 (diff)
media: i2c: mt9v111: Fix v4l2-ctrl error handling
Fix error handling of v4l2_ctrl creation by inspecting the ctrl.error flag instead of testing for each returned value correctness. As reported by Dan Carpenter returning PTR_ERR() on the v4l2_ctrl_new_std() return value is also wrong, as that function return NULL on error. While at there re-order the cleanup path to respect the operation inverse order. Fixes: aab7ed1c "media: i2c: Add driver for Aptina MT9V111" Reported-by: Dan Carpenter <[email protected]> Signed-off-by: Jacopo Mondi <[email protected]> Signed-off-by: Sakari Ailus <[email protected]> Signed-off-by: Mauro Carvalho Chehab <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python/bin/export-to-postgresql-report')
0 files changed, 0 insertions, 0 deletions