summaryrefslogtreecommitdiff
path: root/src/lib/ubsan.c
diff options
context:
space:
mode:
authorJacob Garber <jgarber1@ualberta.ca>2019-05-23 14:34:58 -0600
committerMartin Roth <martinroth@google.com>2019-05-29 16:42:36 +0000
commitc30e59051fcbda4fba8a2c36c6b04110ee1caacd (patch)
treeac4b0312a11661399764f2a943b04af382dd635d /src/lib/ubsan.c
parentb80d1324d3e86c0b8c72fd7cd09df07794931059 (diff)
arch/x86: Do not add properties to null DP packages
It doesn't make sense to add a property to a non-existent Device Property package. However, some of these functions will proceed anyway and allocate a new Device Property package, add the property to that, and then immediately leak the new package. This changes all the acpi_dp_add_* functions to ignore a null package. Change-Id: I664dcdbaa6b1b8a3aeb9a0126d622e2ffb736efd Signed-off-by: Jacob Garber <jgarber1@ualberta.ca> Found-by: Coverity CID 135745{6,7}, 138029{2-6} Reviewed-on: https://review.coreboot.org/c/coreboot/+/32971 Tested-by: build bot (Jenkins) <no-reply@coreboot.org> Reviewed-by: Furquan Shaikh <furquan@google.com>
Diffstat (limited to 'src/lib/ubsan.c')
0 files changed, 0 insertions, 0 deletions