aboutsummaryrefslogtreecommitdiff
path: root/tools/perf/scripts/python/flamegraph.py
diff options
context:
space:
mode:
authorAndy Shevchenko <[email protected]>2024-03-04 16:04:32 +0200
committerJonathan Cameron <[email protected]>2024-03-25 20:10:12 +0000
commitf0245ab389330cbc1d187e358a5b890d9f5383db (patch)
tree81a41c6afaa75390bd6559575ff5a743e30d4ebf /tools/perf/scripts/python/flamegraph.py
parentcb98410db73f2584c8d8437472a7d4727f7c53fc (diff)
iio: core: Leave private pointer NULL when no private data supplied
In iio_device_alloc() when size of the private data is 0, the private pointer is calculated to point behind the valid data. Leave it NULL when no private data supplied. Fixes: 6d4ebd565d15 ("iio: core: wrap IIO device into an iio_dev_opaque object") Signed-off-by: Andy Shevchenko <[email protected]> Reviewed-by: David Lechner <[email protected]> Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Jonathan Cameron <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python/flamegraph.py')
0 files changed, 0 insertions, 0 deletions