drivers/amd/i2s_machine_dev: return if scope is NULL
commit114cf22e8d9881aedc9ee72af5dfac74fdff5627
authorMartin Roth <martin@coreboot.org>
Tue, 28 Jul 2020 15:42:07 +0000 (28 09:42 -0600)
committerPatrick Georgi <pgeorgi@google.com>
Mon, 3 Aug 2020 05:08:39 +0000 (3 05:08 +0000)
tree4c468eb31969549abfd519a736d894ad1a9a1a3b
parent6880aec670661d961ab9baeb7fab0595d0ba906c
drivers/amd/i2s_machine_dev: return if scope is NULL

Avoid dereferencing a null pointer.

Found-by: Coverity CID 1430549
BUG=None
TEST=Build

Signed-off-by: Martin Roth <martin@coreboot.org>
Change-Id: I53f6a38aac6e7f94c3c370996b3b82ca0d88dac4
Reviewed-on: https://review.coreboot.org/c/coreboot/+/44001
Tested-by: build bot (Jenkins) <no-reply@coreboot.org>
Reviewed-by: Furquan Shaikh <furquan@google.com>
src/drivers/amd/i2s_machine_dev/i2s_machine_dev.c