soc/qualcomm/qcs405: Handle invalid QUP and BLSP
commit53b4b2850c0db509c9d0d5da4d2975710f685bd7
authorJacob Garber <jgarber1@ualberta.ca>
Tue, 23 Jul 2019 17:46:24 +0000 (23 11:46 -0600)
committerPatrick Georgi <pgeorgi@google.com>
Mon, 29 Jul 2019 06:09:17 +0000 (29 06:09 +0000)
treecbbe3501ec4a3af90c4d5031f54bb5e4f72454d6
parent767c4b28998aff563c36e2f2000e4768b68add8f
soc/qualcomm/qcs405: Handle invalid QUP and BLSP

Print an error message and return if an invalid QUP or BLSP is
encountered. This prevents a possible null pointer dereference
of spi_clk.

Change-Id: I374e15ce899c651df9c2d3e0f1ec646e33d4bdb2
Signed-off-by: Jacob Garber <jgarber1@ualberta.ca>
Found-by: Coverity CID 1401086
Reviewed-on: https://review.coreboot.org/c/coreboot/+/34523
Tested-by: build bot (Jenkins) <no-reply@coreboot.org>
Reviewed-by: Patrick Georgi <pgeorgi@google.com>
src/soc/qualcomm/qcs405/clock.c