summaryrefslogtreecommitdiff
path: root/payloads/libpayload/gdb
diff options
context:
space:
mode:
authorJacob Garber <jgarber1@ualberta.ca>2019-05-13 17:04:00 -0600
committerPatrick Georgi <pgeorgi@google.com>2019-05-15 17:54:02 +0000
commit724c66c88fa219087f4d6a0ccce1ba1d6f93c93b (patch)
tree1993a61bb1b9e07569aaf1d2007ff6d073e0e60f /payloads/libpayload/gdb
parent807803afa2d10cfd818d7f1585e0279f09fc1e14 (diff)
libpayload: ahci: Prevent memory leaks when failing on init
Free several resources when AHCI initialization fails. Note that it is only safe to free resources when the command engine has stopped, since otherwise they may still be used for DMA. Found-by: Coverity CID 1260719, 1260727, 1261090, 1261098 Signed-off-by: Jacob Garber <jgarber1@ualberta.ca> Change-Id: I6826d79338b26ff9696ab6ac9eb4c59f734687d8 Reviewed-on: https://review.coreboot.org/c/coreboot/+/32778 Tested-by: build bot (Jenkins) <no-reply@coreboot.org> Reviewed-by: HAOUAS Elyes <ehaouas@noos.fr> Reviewed-by: Nico Huber <nico.h@gmx.de>
Diffstat (limited to 'payloads/libpayload/gdb')
0 files changed, 0 insertions, 0 deletions