summaryrefslogtreecommitdiffstats
path: root/init
diff options
context:
space:
mode:
authorLoic Poulain2016-04-28 18:48:25 +0200
committerMarcel Holtmann2016-05-02 19:29:31 +0200
commit32b9ccbc3522811c0e483637b85ae25f5491296f (patch)
tree794782883e000bb20aeeef3f7d64f52e7d79edb1 /init
parentbtmrvl: add platform specific wakeup interrupt support (diff)
downloadkernel-qcow2-linux-32b9ccbc3522811c0e483637b85ae25f5491296f.tar.gz
kernel-qcow2-linux-32b9ccbc3522811c0e483637b85ae25f5491296f.tar.xz
kernel-qcow2-linux-32b9ccbc3522811c0e483637b85ae25f5491296f.zip
Bluetooth: hci_intel: Fix null gpio desc pointer dereference
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>
Diffstat (limited to 'init')
0 files changed, 0 insertions, 0 deletions