Skip to content

Commit 43257b2

Browse files
committed
Merge tag 'kmalloc_obj-prep-v7.0-rc1' of git://git.kernel.org/pub/scm/linux/kernel/git/kees/linux
Pull kmalloc_obj prep from Kees Cook: "Fixes for return types to prepare for the kmalloc_obj treewide conversion, that haven't yet appeared during the merge window: dm-crypt, dm-zoned, drm/msm, and arm64 kvm" * tag 'kmalloc_obj-prep-v7.0-rc1' of git://git.kernel.org/pub/scm/linux/kernel/git/kees/linux: KVM: arm64: vgic: Handle const qualifier from gic_kvm_info allocation type drm/msm: Adjust msm_iommu_pagetable_prealloc_allocate() allocation type dm: dm-zoned: Adjust dmz_load_mapping() allocation type dm-crypt: Adjust crypt_alloc_tfms_aead() allocation type
2 parents a95f71a + c732084 commit 43257b2

4 files changed

Lines changed: 4 additions & 4 deletions

File tree

arch/arm64/kvm/vgic/vgic-init.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -654,7 +654,7 @@ static struct gic_kvm_info *gic_kvm_info;
654654
void __init vgic_set_kvm_info(const struct gic_kvm_info *info)
655655
{
656656
BUG_ON(gic_kvm_info != NULL);
657-
gic_kvm_info = kmalloc(sizeof(*info), GFP_KERNEL);
657+
gic_kvm_info = kmalloc(sizeof(*gic_kvm_info), GFP_KERNEL);
658658
if (gic_kvm_info)
659659
*gic_kvm_info = *info;
660660
}

drivers/gpu/drm/msm/msm_iommu.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -332,7 +332,7 @@ msm_iommu_pagetable_prealloc_allocate(struct msm_mmu *mmu, struct msm_mmu_preall
332332
struct kmem_cache *pt_cache = get_pt_cache(mmu);
333333
int ret;
334334

335-
p->pages = kvmalloc_array(p->count, sizeof(p->pages), GFP_KERNEL);
335+
p->pages = kvmalloc_array(p->count, sizeof(*p->pages), GFP_KERNEL);
336336
if (!p->pages)
337337
return -ENOMEM;
338338

drivers/md/dm-crypt.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2364,7 +2364,7 @@ static int crypt_alloc_tfms_aead(struct crypt_config *cc, char *ciphermode)
23642364
{
23652365
int err;
23662366

2367-
cc->cipher_tfm.tfms = kmalloc(sizeof(struct crypto_aead *), GFP_KERNEL);
2367+
cc->cipher_tfm.tfms = kmalloc(sizeof(struct crypto_skcipher *), GFP_KERNEL);
23682368
if (!cc->cipher_tfm.tfms)
23692369
return -ENOMEM;
23702370

drivers/md/dm-zoned-metadata.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1687,7 +1687,7 @@ static int dmz_load_mapping(struct dmz_metadata *zmd)
16871687

16881688
/* Metadata block array for the chunk mapping table */
16891689
zmd->map_mblk = kcalloc(zmd->nr_map_blocks,
1690-
sizeof(struct dmz_mblk *), GFP_KERNEL);
1690+
sizeof(struct dmz_mblock *), GFP_KERNEL);
16911691
if (!zmd->map_mblk)
16921692
return -ENOMEM;
16931693

0 commit comments

Comments
 (0)