Skip to content
Snippets Groups Projects
Commit eab2dc37 authored by Patrick Wildt's avatar Patrick Wildt Committed by Alexander Graf
Browse files

efi_loader: initialize device path on alloc


Since the backing memory for a new device path can contain stale
data we have to make sure that we zero the buffer.  Otherwise some
code paths that don't set all fields in a structure backed by this
device path might contain unwanted stale data.

Signed-off-by: default avatarPatrick Wildt <patrick@blueri.se>
Reviewed-by: default avatarHeinrich Schuchardt <xypron.glpk@gmx.de>
Signed-off-by: default avatarAlexander Graf <agraf@suse.de>
parent e2742358
No related branches found
No related tags found
No related merge requests found
......@@ -66,6 +66,7 @@ static void *dp_alloc(size_t sz)
return NULL;
}
memset(buf, 0, sz);
return buf;
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment