Searched hist:cb40c099ea4cc545eb899722815d295cf26d2962 (Results 1 – 1 of 1) sorted by relevance
| /rk3399_rockchip-uboot/cmd/ |
| H A D | gpt.c | cb40c099ea4cc545eb899722815d295cf26d2962 Tue Sep 26 14:42:28 UTC 2017 Alison Chaiken <alison@she-devel.com> UPSTREAM: GPT: fix memory leaks identified by Coverity
Create a common exit for most of the error handling code in do_rename_gpt_parts. Delete the list elements in disk_partitions before calling INIT_LIST_HEAD from get_gpt_info() a second time.
The SIZEOF_MISMATCH error is not addressed, since that problem was already fixed by "GPT: incomplete initialization in allocate_disk_part".
Change-Id: I4ec9881a86c8a50960844e07f69c04a239bc218f Signed-off-by: Alison Chaiken <alison@peloton-tech.com> Reported-by: Coverity (CID: 167222, 167235, 167237) Reviewed-by: Tom Rini <trini@konsulko.com> Signed-off-by: Kever Yang <kever.yang@rock-chips.com> (cherry picked from commit 18030d04d25d7c08d3deff85881772a520d84d49)
|