diff options
author | Lennart Poettering <lennart@poettering.net> | 2018-10-12 18:50:46 +0200 |
---|---|---|
committer | Lennart Poettering <lennart@poettering.net> | 2018-10-13 12:37:13 +0200 |
commit | 9db296fdddee5645567ad0c0edff37481361b91b (patch) | |
tree | 61b12f0945b2cf8f34a9d67457aea4edafcd260e /src/shared/efivars.c | |
parent | 165ad41b7fb97fb61e5436896dbaeb1b3e62f2e2 (diff) | |
download | systemd-9db296fdddee5645567ad0c0edff37481361b91b.tar.gz systemd-9db296fdddee5645567ad0c0edff37481361b91b.tar.bz2 systemd-9db296fdddee5645567ad0c0edff37481361b91b.zip |
efivars: add missing OOM check
CID #1395833
Diffstat (limited to 'src/shared/efivars.c')
-rw-r--r-- | src/shared/efivars.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/shared/efivars.c b/src/shared/efivars.c index da70e68c81..7a9754096c 100644 --- a/src/shared/efivars.c +++ b/src/shared/efivars.c @@ -455,6 +455,9 @@ int efi_get_boot_option( /* Sub-Type 4 – File Path */ if (dpath->sub_type == MEDIA_FILEPATH_DP && !p && path) { p = utf16_to_utf8(dpath->path, dpath->length-4); + if (!p) + return -ENOMEM; + efi_tilt_backslashes(p); continue; } |