summaryrefslogtreecommitdiff
path: root/tools/perf/scripts/python/bin
diff options
context:
space:
mode:
authorChen Ni <nichen@iscas.ac.cn>2026-02-02 10:43:12 +0800
committerMauro Carvalho Chehab <mchehab+huawei@kernel.org>2026-03-11 01:05:37 +0100
commitc8e0585dce5df525308f0fba40b618df03aaf7fc (patch)
tree4a2f24ae9b50ff6f17a0ee74dec40307d0a63a4b /tools/perf/scripts/python/bin
parent943b1f27a3eead21b22e2531a5432ea5910b60eb (diff)
media: i2c: mt9p031: Check return value of devm_gpiod_get_optional() in mt9p031_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> 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/bin')
0 files changed, 0 insertions, 0 deletions