diff options
author | John Zhao <john.zhao@intel.com> | 2020-09-18 11:54:05 -0700 |
---|---|---|
committer | Patrick Georgi <pgeorgi@google.com> | 2020-09-21 08:12:25 +0000 |
commit | 388e551dc3d558f82804c144059ac2eb6df7d27c (patch) | |
tree | f48b9896d6cb5826656d12b55a35ba87ee02da4b /AUTHORS | |
parent | 342d0a8365bc0a61936bfd1deba69dc0d4f68d05 (diff) |
drivers/intel/mipi_camera: Avoid resource leak
Coverity detects variable dsd going out of scope leaks the storage it
points to. Move dsd resource allocation after sanity check for
config->nvm_compact to avoid leak.
Found-by: Coverity CID 1432727
TEST=Built and boot up to kernel on Volteer.
Signed-off-by: John Zhao <john.zhao@intel.com>
Change-Id: I86af322dc78845b8b312b6815135336c2c56b4dd
Reviewed-on: https://review.coreboot.org/c/coreboot/+/45531
Tested-by: build bot (Jenkins) <no-reply@coreboot.org>
Reviewed-by: Tim Wawrzynczak <twawrzynczak@chromium.org>
Diffstat (limited to 'AUTHORS')
0 files changed, 0 insertions, 0 deletions