aboutsummaryrefslogtreecommitdiff
path: root/tools/perf/scripts/python/export-to-sqlite.py
diff options
context:
space:
mode:
authorWolfram Sang <[email protected]>2019-08-09 13:52:15 -0300
committerMauro Carvalho Chehab <[email protected]>2019-08-13 11:46:32 -0300
commit2f822f1da08ac5c93e351e79d22920f08fa51baf (patch)
treecad46048e7a01089eb5f1ca726fe1bb4077f81cf /tools/perf/scripts/python/export-to-sqlite.py
parent53f5d7a46fab01f22a2b4ffed8bd05aa425aed2f (diff)
media: i2c: tda1997x: prevent potential NULL pointer access
i2c_new_dummy() can fail returning a NULL pointer. This is not checked and the returned pointer is blindly used. Convert to devm_i2c_new_dummy_client() which returns an ERR_PTR and also add a validity check. Using devm_* here also fixes a leak because the dummy client was not released in the probe error path. Signed-off-by: Wolfram Sang <[email protected]> Signed-off-by: Hans Verkuil <[email protected]> Signed-off-by: Mauro Carvalho Chehab <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python/export-to-sqlite.py')
0 files changed, 0 insertions, 0 deletions