summaryrefslogtreecommitdiffstats
path: root/common/efi-guid.c
diff options
context:
space:
mode:
authorSascha Hauer <s.hauer@pengutronix.de>2020-06-16 11:24:25 +0200
committerSascha Hauer <s.hauer@pengutronix.de>2020-06-16 11:33:24 +0200
commit1915553bf8b6a2d26dfda73069d9ee76ea9e09f5 (patch)
treeabc9165aef1a2c0207bc556a4ad82321e97596af /common/efi-guid.c
parentc90ff1bdfbbc46826101c75d36903d798822c805 (diff)
downloadbarebox-1915553bf8b6a2d26dfda73069d9ee76ea9e09f5.tar.gz
barebox-1915553bf8b6a2d26dfda73069d9ee76ea9e09f5.tar.xz
ratp: Straighten ratp deregistration
There are some bugs in the error path when ratp initialization fails half way through. Reusing the global ratp context which might be half initialized makes the code hard to follow and hard to fix, so the strategy is changed to always allocating a fresh ratp context and returning -EBUSY when one exists already. We store in the context what has been done in the initialization path and add a ratp_unregister() which uses this information to tear down everything that has been initialized. Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
Diffstat (limited to 'common/efi-guid.c')
0 files changed, 0 insertions, 0 deletions