summaryrefslogtreecommitdiffstats
path: root/src/include/string.h
diff options
context:
space:
mode:
authorMichael Brown2014-07-30 17:07:25 +0200
committerMichael Brown2014-07-30 17:07:25 +0200
commitb53d4ae398e74846a6590fc48c295f319397e9c1 (patch)
treebc87d9f4ca23ecf75258080481f23c39ee019be8 /src/include/string.h
parent[efi] Default to releasing network devices for use via SNP (diff)
downloadipxe-b53d4ae398e74846a6590fc48c295f319397e9c1.tar.gz
ipxe-b53d4ae398e74846a6590fc48c295f319397e9c1.tar.xz
ipxe-b53d4ae398e74846a6590fc48c295f319397e9c1.zip
[efi] Unload started images only on failure
If the StartImage() call returns with no error, then the image must have been started and returned successfully. It either unloaded itself, or it intended to remain loaded (e.g. it was a driver). We therefore do not unload successful images. If there was an error, we attempt to unload the image. This may not work. In particular, there is no way to tell whether an error returned from StartImage() was due to being unable to start the image (in which case we probably should call UnloadImage()), or due to the image itself returning an error (in which case we probably should not call UnloadImage()). We therefore ignore any failures from the UnloadImage() call itself. Signed-off-by: Michael Brown <mcb30@ipxe.org>
Diffstat (limited to 'src/include/string.h')
0 files changed, 0 insertions, 0 deletions