aboutsummaryrefslogtreecommitdiff
path: root/tools/perf/scripts/python/netdev-times.py
diff options
context:
space:
mode:
authorAlexandru Ardelean <[email protected]>2018-08-07 17:06:05 +0300
committerJonathan Cameron <[email protected]>2018-08-19 18:32:05 +0100
commit6b8471e4601db48ef76144fac6e706256c2aae2d (patch)
tree89609023e78f36a78213bd7c3507692137735886 /tools/perf/scripts/python/netdev-times.py
parenteb2e188817b13d2f13b61ea6b96b7753ccff48dd (diff)
iio: adxl345: move null check for i2c id at start of probe
Fixes ef89f4b96a2 ("iio: adxl345: Add support for the ADXL375"). This was found via static checker. After looking into the code a bit, it's unlikely that there will be a NULL dereference if the `id` object in that specific code path. However, it's safe to add a NULL (paranoid) check just to make sure and remove any uncertainties. Reported-by: Dan Carpenter <[email protected]> Signed-off-by: Alexandru Ardelean <[email protected]> Signed-off-by: Jonathan Cameron <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python/netdev-times.py')
0 files changed, 0 insertions, 0 deletions