Loading kernel/dma/swiotlb.c +1 −2 Original line number Diff line number Diff line Loading @@ -818,8 +818,7 @@ static int rmem_swiotlb_device_init(struct reserved_mem *rmem, if (!mem) return -ENOMEM; mem->slots = kzalloc(array_size(sizeof(*mem->slots), nslabs), GFP_KERNEL); mem->slots = kcalloc(nslabs, sizeof(*mem->slots), GFP_KERNEL); if (!mem->slots) { kfree(mem); return -ENOMEM; Loading Loading
kernel/dma/swiotlb.c +1 −2 Original line number Diff line number Diff line Loading @@ -818,8 +818,7 @@ static int rmem_swiotlb_device_init(struct reserved_mem *rmem, if (!mem) return -ENOMEM; mem->slots = kzalloc(array_size(sizeof(*mem->slots), nslabs), GFP_KERNEL); mem->slots = kcalloc(nslabs, sizeof(*mem->slots), GFP_KERNEL); if (!mem->slots) { kfree(mem); return -ENOMEM; Loading