diff options
| author | Takashi Iwai <tiwai@suse.de> | 2013-04-02 11:44:51 +0200 |
|---|---|---|
| committer | Takashi Iwai <tiwai@suse.de> | 2013-04-02 11:44:51 +0200 |
| commit | ea019fdf1a2aa4134ce90801f7b36680d0fbd785 (patch) | |
| tree | ab44af35ae3e75f7fe60391274aa8a0a09a15c15 /virt/kvm | |
| parent | 55a63d4da3b8850480a1c5b222f77c739e30e346 (diff) | |
| parent | 40bac28eb1e39f229a94ad72e2ca8cdeef3ba31a (diff) | |
| download | linux-ea019fdf1a2aa4134ce90801f7b36680d0fbd785.tar.gz linux-ea019fdf1a2aa4134ce90801f7b36680d0fbd785.zip | |
Merge tag 'asoc-fix-v3.9-rc4' of git://git.kernel.org/pub/scm/linux/kernel/git/broonie/sound into for-linus
ASoC: Fixes for v3.9
A few more fixes here and there, including quite a few nasty driver
specific ones, but nothing that has a major general impact.
Diffstat (limited to 'virt/kvm')
| -rw-r--r-- | virt/kvm/ioapic.c | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/virt/kvm/ioapic.c b/virt/kvm/ioapic.c index ce82b9401958..5ba005c00e2f 100644 --- a/virt/kvm/ioapic.c +++ b/virt/kvm/ioapic.c @@ -74,9 +74,12 @@ static unsigned long ioapic_read_indirect(struct kvm_ioapic *ioapic, u32 redir_index = (ioapic->ioregsel - 0x10) >> 1; u64 redir_content; - ASSERT(redir_index < IOAPIC_NUM_PINS); + if (redir_index < IOAPIC_NUM_PINS) + redir_content = + ioapic->redirtbl[redir_index].bits; + else + redir_content = ~0ULL; - redir_content = ioapic->redirtbl[redir_index].bits; result = (ioapic->ioregsel & 0x1) ? (redir_content >> 32) & 0xffffffff : redir_content & 0xffffffff; |
