summaryrefslogtreecommitdiff
path: root/include/linux/i2c/git@git.tavy.me:linux.git
diff options
context:
space:
mode:
authorChen Ni <nichen@iscas.ac.cn>2026-01-30 17:19:04 +0800
committerMark Brown <broonie@kernel.org>2026-01-30 13:53:23 +0000
commita1d14d8364eac2611fe1391c73ff0e5b26064f0e (patch)
tree2bd227e184aba7efd3311557ea12a777caf6f075 /include/linux/i2c/git@git.tavy.me:linux.git
parentbbb758a6943e19c483ab752cf8220140b46cf22c (diff)
ASoC: codecs: max98390: Check return value of devm_gpiod_get_optional() in max98390_i2c_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> Link: https://patch.msgid.link/20260130091904.3426149-1-nichen@iscas.ac.cn Signed-off-by: Mark Brown <broonie@kernel.org>
Diffstat (limited to 'include/linux/i2c/git@git.tavy.me:linux.git')
0 files changed, 0 insertions, 0 deletions