summaryrefslogtreecommitdiff
path: root/include/linux
diff options
context:
space:
mode:
authorPhil Elwell <phil@raspberrypi.com>2023-08-11 16:58:29 +0100
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2023-10-25 11:16:30 +0200
commit3f234895e313a8ea45b3e5668c311fbf4a7999a8 (patch)
tree25fcfd4c1fc4b0354fc94553d9f506f3fc3b0913 /include/linux
parentc4e925cc7ff44556560aa58cbfa1abaaf7a35670 (diff)
iio: pressure: bmp280: Fix NULL pointer exception
commit 85dfb43bf69281adb1f345dfd9a39faf2e5a718d upstream. The bmp085 EOC IRQ support is optional, but the driver's common probe function queries the IRQ properties whether or not it exists, which can trigger a NULL pointer exception. Avoid any exception by making the query conditional on the possession of a valid IRQ. Fixes: aae953949651 ("iio: pressure: bmp280: add support for BMP085 EOC interrupt") Signed-off-by: Phil Elwell <phil@raspberrypi.com> Reviewed-by: Linus Walleij <linus.walleij@linaro.org> Link: https://lore.kernel.org/r/20230811155829.51208-1-phil@raspberrypi.com Signed-off-by: Jonathan Cameron <Jonathan.Cameron@huawei.com> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'include/linux')
0 files changed, 0 insertions, 0 deletions