diff options
| author | Loic Poulain <loic.poulain@intel.com> | 2016-04-28 18:48:25 +0200 |
|---|---|---|
| committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2016-08-20 18:09:17 +0200 |
| commit | e5cf298670b360550a9b772b02aaafd13652fe74 (patch) | |
| tree | da5bf4fbcf2c29ff68cf07da895e48850b1fa966 /scripts | |
| parent | 0b3ff17cabc6b06226f45b63c1d62fc186f3080d (diff) | |
Bluetooth: hci_intel: Fix null gpio desc pointer dereference
commit 32b9ccbc3522811c0e483637b85ae25f5491296f upstream.
gpiod_get_optional can return either ERR_PTR or NULL pointer.
NULL case is not tested and then dereferenced later in desc_to_gpio.
Fix this by using non optional version which returns ERR_PTR in any
error case (this is not an optional gpio).
Use the same non optional version for the host-wake gpio.
Fixes: 765ea3abd116 ("Bluetooth: hci_intel: Retrieve host-wake IRQ")
Signed-off-by: Loic Poulain <loic.poulain@intel.com>
Signed-off-by: Marcel Holtmann <marcel@holtmann.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'scripts')
0 files changed, 0 insertions, 0 deletions
