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>tags/v1.20.1
|
|
||
229 |
|
229 |
|
230 |
|
230 |
|
231 |
|
231 |
|
232 |
|
|
|
233 |
|
|
|
|
232 |
|
|
|
233 |
|
|
234 |
|
234 |
|
235 |
|
235 |
|
236 |
|
236 |
|
|
|
||
240 |
|
240 |
|
241 |
|
241 |
|
242 |
|
242 |
|
243 |
|
|
|
244 |
|
|
|
|
243 |
|
|
|
244 |
|
|
|
245 |
|
|
|
246 |
|
|
|
247 |
|
|
|
248 |
|
|
|
249 |
|
|
|
250 |
|
|
|
251 |
|
|
|
252 |
|
|
|
253 |
|
|
|
254 |
|
|
|
255 |
|
|
245 |
|
256 |
|
246 |
|
|
|
247 |
|
|
|
248 |
|
|
|
249 |
|
|
|
250 |
|
|
|
|
257 |
|
|
|
258 |
|
|
251 |
|
259 |
|
252 |
|
260 |
|
253 |
|
261 |
|