diff options
author | 2021-12-24 08:02:49 +0000 | |
---|---|---|
committer | 2022-01-06 14:53:57 +0100 | |
commit | 6845667146a28c09b5dfc401c1ad112374087944 (patch) | |
tree | f260db2b1f321349afaf40f013d457f7fcbd752f /tools/perf/scripts/python/export-to-postgresql.py | |
parent | Bluetooth: hci_bcm: Check for error irq (diff) | |
download | wireguard-linux-6845667146a28c09b5dfc401c1ad112374087944.tar.xz wireguard-linux-6845667146a28c09b5dfc401c1ad112374087944.zip |
Bluetooth: hci_qca: Fix NULL vs IS_ERR_OR_NULL check in qca_serdev_probe
The function devm_gpiod_get_index() return error pointers on error.
Thus devm_gpiod_get_index_optional() could return NULL and error pointers.
The same as devm_gpiod_get_optional() function. Using IS_ERR_OR_NULL()
check to catch error pointers.
Fixes: 77131dfe ("Bluetooth: hci_qca: Replace devm_gpiod_get() with devm_gpiod_get_optional()")
Signed-off-by: Miaoqian Lin <linmq006@gmail.com>
Signed-off-by: Marcel Holtmann <marcel@holtmann.org>
Diffstat (limited to 'tools/perf/scripts/python/export-to-postgresql.py')
0 files changed, 0 insertions, 0 deletions