]> git.baikalelectronics.ru Git - kernel.git/commit
soc: qcom: geni: Provide parameter error checking
authorLee Jones <lee.jones@linaro.org>
Thu, 5 Sep 2019 08:25:55 +0000 (09:25 +0100)
committerArnd Bergmann <arnd@arndb.de>
Fri, 6 Sep 2019 09:08:08 +0000 (11:08 +0200)
commit7fd3fa1bcf1c41885ae6c2d2c453f5ec81c22450
tree1377f055ac7fc00a5474bf87306ca751b2694c63
parentb27616eaaa068a81da3ae1817db8fb56d0878ffa
soc: qcom: geni: Provide parameter error checking

When booting with ACPI, the Geni Serial Engine is not set as the I2C/SPI
parent and thus, the wrapper (parent device) is unassigned.  This causes
the kernel to crash with a null dereference error.

Link: https://lore.kernel.org/r/20190905082555.15020-1-lee.jones@linaro.org
Fixes: 84fd4d468366 ("soc: qcom: geni: Add support for ACPI")
Acked-by: Bjorn Andersson <bjorn.andersson@linaro.org>
Reviewed-by: Stephen Boyd <sboyd@kernel.org>
Signed-off-by: Lee Jones <lee.jones@linaro.org>
Signed-off-by: Arnd Bergmann <arnd@arndb.de>
drivers/soc/qcom/qcom-geni-se.c