summaryrefslogtreecommitdiffstats
path: root/arch/efi
diff options
context:
space:
mode:
authorMichael Olbrich <m.olbrich@pengutronix.de>2015-07-17 21:22:43 +0200
committerSascha Hauer <s.hauer@pengutronix.de>2015-07-27 07:23:18 +0200
commitb04ec8bfb97dacc54c04d64aea786841da657e9f (patch)
tree01b5e8c01c0dcd7380113ce385ed4324647ac054 /arch/efi
parent21a83053ab619f00fce457c717c496d3b0dc7b4d (diff)
downloadbarebox-b04ec8bfb97dacc54c04d64aea786841da657e9f.tar.gz
barebox-b04ec8bfb97dacc54c04d64aea786841da657e9f.tar.xz
efi: use xasprintf() when appropriate
Signed-off-by: Michael Olbrich <m.olbrich@pengutronix.de> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
Diffstat (limited to 'arch/efi')
-rw-r--r--arch/efi/efi/efi-block-io.c2
-rw-r--r--arch/efi/efi/efi.c2
2 files changed, 2 insertions, 2 deletions
diff --git a/arch/efi/efi/efi-block-io.c b/arch/efi/efi/efi-block-io.c
index 85603d913..e02d3b49c 100644
--- a/arch/efi/efi/efi-block-io.c
+++ b/arch/efi/efi/efi-block-io.c
@@ -147,7 +147,7 @@ int efi_bio_probe(struct efi_device *efidev)
efi_bio_print_info(priv);
priv->dev = &efidev->dev;
- priv->blk.cdev.name = asprintf("disk%d", cdev_find_free_index("disk"));
+ priv->blk.cdev.name = xasprintf("disk%d", cdev_find_free_index("disk"));
priv->blk.blockbits = ffs(media->block_size) - 1;
priv->blk.num_blocks = media->last_block + 1;
priv->blk.ops = &efi_bio_ops;
diff --git a/arch/efi/efi/efi.c b/arch/efi/efi/efi.c
index 1f0deed57..6cffac60f 100644
--- a/arch/efi/efi/efi.c
+++ b/arch/efi/efi/efi.c
@@ -125,7 +125,7 @@ struct efi_boot *efi_get_boot(int num)
int size;
char *name;
- name = asprintf("Boot%04X", num);
+ name = xasprintf("Boot%04X", num);
buf = efi_get_global_var(name, &size);