diff options
Diffstat (limited to 'virt/kvm/arm/vgic/vgic-its.c')
| -rw-r--r-- | virt/kvm/arm/vgic/vgic-its.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/virt/kvm/arm/vgic/vgic-its.c b/virt/kvm/arm/vgic/vgic-its.c index 1f761a9991e7..8e633bd9cc1e 100644 --- a/virt/kvm/arm/vgic/vgic-its.c +++ b/virt/kvm/arm/vgic/vgic-its.c | |||
| @@ -421,6 +421,7 @@ static int its_sync_lpi_pending_table(struct kvm_vcpu *vcpu) | |||
| 421 | u32 *intids; | 421 | u32 *intids; |
| 422 | int nr_irqs, i; | 422 | int nr_irqs, i; |
| 423 | unsigned long flags; | 423 | unsigned long flags; |
| 424 | u8 pendmask; | ||
| 424 | 425 | ||
| 425 | nr_irqs = vgic_copy_lpi_list(vcpu, &intids); | 426 | nr_irqs = vgic_copy_lpi_list(vcpu, &intids); |
| 426 | if (nr_irqs < 0) | 427 | if (nr_irqs < 0) |
| @@ -428,7 +429,6 @@ static int its_sync_lpi_pending_table(struct kvm_vcpu *vcpu) | |||
| 428 | 429 | ||
| 429 | for (i = 0; i < nr_irqs; i++) { | 430 | for (i = 0; i < nr_irqs; i++) { |
| 430 | int byte_offset, bit_nr; | 431 | int byte_offset, bit_nr; |
| 431 | u8 pendmask; | ||
| 432 | 432 | ||
| 433 | byte_offset = intids[i] / BITS_PER_BYTE; | 433 | byte_offset = intids[i] / BITS_PER_BYTE; |
| 434 | bit_nr = intids[i] % BITS_PER_BYTE; | 434 | bit_nr = intids[i] % BITS_PER_BYTE; |
| @@ -821,6 +821,8 @@ static int vgic_its_alloc_collection(struct vgic_its *its, | |||
| 821 | return E_ITS_MAPC_COLLECTION_OOR; | 821 | return E_ITS_MAPC_COLLECTION_OOR; |
| 822 | 822 | ||
| 823 | collection = kzalloc(sizeof(*collection), GFP_KERNEL); | 823 | collection = kzalloc(sizeof(*collection), GFP_KERNEL); |
| 824 | if (!collection) | ||
| 825 | return -ENOMEM; | ||
| 824 | 826 | ||
| 825 | collection->collection_id = coll_id; | 827 | collection->collection_id = coll_id; |
| 826 | collection->target_addr = COLLECTION_NOT_MAPPED; | 828 | collection->target_addr = COLLECTION_NOT_MAPPED; |
