Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit b87576d5 authored by Robert P. J. Day's avatar Robert P. J. Day Committed by Adrian Bunk
Browse files

fs: Convert kmalloc() + memset() to kzalloc() in fs/.



Convert the single available instance of kmalloc() + memset() to
kzalloc() in the fs/ directory.

Signed-off-by: default avatarRobert P. J. Day <rpjday@mindspring.com>
Signed-off-by: default avatarAdrian Bunk <bunk@stusta.de>
parent df4365ce
Loading
Loading
Loading
Loading
+1 −2
Original line number Diff line number Diff line
@@ -706,12 +706,11 @@ static int elf_fdpic_map_file(struct elf_fdpic_params *params,
		return -ELIBBAD;

	size = sizeof(*loadmap) + nloads * sizeof(*seg);
	loadmap = kmalloc(size, GFP_KERNEL);
	loadmap = kzalloc(size, GFP_KERNEL);
	if (!loadmap)
		return -ENOMEM;

	params->loadmap = loadmap;
	memset(loadmap, 0, size);

	loadmap->version = ELF32_FDPIC_LOADMAP_VERSION;
	loadmap->nsegs = nloads;