X-Git-Url: http://pileus.org/git/?a=blobdiff_plain;f=block%2Fpartitions%2Fefi.c;h=c85fc895ecdbbeba25b624e1af909bfa61f3acc2;hb=007b703b3ed74e9af9c0576e7698ccda0170d370;hp=ff5804e2f1d2ffeb40d7d7446af9867e0b48bd03;hpb=bcd5d1d978c70841d68c7a3725269df9d5a4abf8;p=~andy%2Flinux diff --git a/block/partitions/efi.c b/block/partitions/efi.c index ff5804e2f1d..c85fc895ecd 100644 --- a/block/partitions/efi.c +++ b/block/partitions/efi.c @@ -238,7 +238,7 @@ static gpt_entry *alloc_read_gpt_entries(struct parsed_partitions *state, le32_to_cpu(gpt->sizeof_partition_entry); if (!count) return NULL; - pte = kzalloc(count, GFP_KERNEL); + pte = kmalloc(count, GFP_KERNEL); if (!pte) return NULL; @@ -267,7 +267,7 @@ static gpt_header *alloc_read_gpt_header(struct parsed_partitions *state, gpt_header *gpt; unsigned ssz = bdev_logical_block_size(state->bdev); - gpt = kzalloc(ssz, GFP_KERNEL); + gpt = kmalloc(ssz, GFP_KERNEL); if (!gpt) return NULL;