diff options
author | Heinrich Schuchardt <xypron.glpk@gmx.de> | 2019-05-30 14:16:31 +0200 |
---|---|---|
committer | Heinrich Schuchardt <xypron.glpk@gmx.de> | 2019-05-31 23:27:12 +0200 |
commit | dae7ce451c5eaaae98014a4062950cd646f78c2d (patch) | |
tree | bef9ee3104e539a4fc3c3f95fa9b6efa7dfa810d /lib/tpm-common.c | |
parent | 399a39e34af00e7342406405dc0300da0557277b (diff) |
efi_loader: avoid crash in OpenProtocol()
When trying to open a protocol exclusively attached drivers have to be
removed. This removes entries in the open protocol information linked list
over which we are looping. As additionally child controllers may have been
removed the only safe thing to do is to restart the loop over the linked
list when a driver is removed.
By observing the return code of DisconnectController() we can eliminate a
loop.
Signed-off-by: Heinrich Schuchardt <xypron.glpk@gmx.de>
Diffstat (limited to 'lib/tpm-common.c')
0 files changed, 0 insertions, 0 deletions