summaryrefslogtreecommitdiff
path: root/src/soc/mediatek/common/timer.c
diff options
context:
space:
mode:
authorJohn Zhao <john.zhao@intel.com>2020-07-14 09:07:48 -0700
committerPatrick Georgi <pgeorgi@google.com>2020-07-26 21:04:51 +0000
commitacdf5fd66ea12c3365271686371bc1d225c3f3af (patch)
treecc009f6fd141eb021b05a5425a9230baaa8de1aa /src/soc/mediatek/common/timer.c
parentf09b4b6beed16d964527d26700df6d350e3aeab0 (diff)
drivers/usb: Avoid NULL pointer dereference
Coverity detects dereferencing pointers that might be "NULL" when calling acpigen_write_scope and acpigen_write_device. Add sanity check for both of scope and name to prevent NULL pointer dereference. Found-by: Coverity CID 1430454 TEST=Built and boot up to kernel on Volteer. Signed-off-by: John Zhao <john.zhao@intel.com> Change-Id: I8ece3831bbd2641ceafbd71b9dc3db7e04a8eae4 Reviewed-on: https://review.coreboot.org/c/coreboot/+/43449 Reviewed-by: Angel Pons <th3fanbus@gmail.com> Reviewed-by: Tim Wawrzynczak <twawrzynczak@chromium.org> Tested-by: build bot (Jenkins) <no-reply@coreboot.org>
Diffstat (limited to 'src/soc/mediatek/common/timer.c')
0 files changed, 0 insertions, 0 deletions