aboutsummaryrefslogtreecommitdiff
path: root/tools/perf/scripts/python
diff options
context:
space:
mode:
authorColin Ian King <[email protected]>2020-01-21 16:17:57 +0000
committerJonathan Cameron <[email protected]>2020-02-14 12:08:22 +0000
commit9960c70949d4356abed8747a20637e0946bb0bad (patch)
tree97d01373ca3f277f92508661ce22ee01c35cfe7f /tools/perf/scripts/python
parentcef2760954cf4f8228d14af9bd0b77a021979278 (diff)
iio: st_sensors: handle memory allocation failure to fix null pointer dereference
A null pointer deference on pdata can occur if the allocation of pdata fails. Fix this by adding a null pointer check and handle the -ENOMEM failure in the caller. Addresses-Coverity: ("Dereference null return value") Fixes: 3ce85cc4fbb7 ("iio: st_sensors: get platform data from device tree") Signed-off-by: Colin Ian King <[email protected]> Reviewed-by: Linus Walleij <[email protected]> Signed-off-by: Jonathan Cameron <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python')
0 files changed, 0 insertions, 0 deletions