summaryrefslogtreecommitdiff
path: root/tools/perf/scripts/python/stackcollapse.py
diff options
context:
space:
mode:
authorChen Ni <nichen@iscas.ac.cn>2026-01-30 12:18:15 +0800
committerMauro Carvalho Chehab <mchehab+huawei@kernel.org>2026-03-11 01:05:38 +0100
commit46c2891cf12c767de031a248cbb1f96d203bd3f6 (patch)
tree73f603f378a644eed40ab0e8b434bb27be8fde0c /tools/perf/scripts/python/stackcollapse.py
parentdab65dfbf9c8beb325577c35450c9d363f423f44 (diff)
media: i2c: ar0521: Check return value of devm_gpiod_get_optional() in ar0521_probe()
The devm_gpiod_get_optional() function may return an error pointer (ERR_PTR) in case of a genuine failure during GPIO acquisition, not just NULL which indicates the legitimate absence of an optional GPIO. Add an IS_ERR() check after the function call to catch such errors and propagate them to the probe function, ensuring the driver fails to load safely rather than proceeding with an invalid pointer. Signed-off-by: Chen Ni <nichen@iscas.ac.cn> Acked-by: Krzysztof HaƂasa <khalasa@piap.pl> Signed-off-by: Sakari Ailus <sakari.ailus@linux.intel.com> Signed-off-by: Mauro Carvalho Chehab <mchehab+huawei@kernel.org>
Diffstat (limited to 'tools/perf/scripts/python/stackcollapse.py')
0 files changed, 0 insertions, 0 deletions