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> |
||
|---|---|---|
| .. | ||
| dptf | ||
| fsp1_1 | ||
| fsp2_0 | ||
| gma | ||
| i210 | ||
| ish | ||
| mipi_camera | ||
| pmc_mux | ||
| ptt | ||
| soundwire | ||
| wifi | ||