diff options
Diffstat (limited to 'arch/ia64/sn/pci/tioca_provider.c')
-rw-r--r-- | arch/ia64/sn/pci/tioca_provider.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/arch/ia64/sn/pci/tioca_provider.c b/arch/ia64/sn/pci/tioca_provider.c index 529462c01570..79165122501c 100644 --- a/arch/ia64/sn/pci/tioca_provider.c +++ b/arch/ia64/sn/pci/tioca_provider.c | |||
@@ -420,8 +420,10 @@ tioca_dma_mapped(struct pci_dev *pdev, u64 paddr, size_t req_size) | |||
420 | entry = find_next_zero_bit(map, mapsize, last_entry); | 420 | entry = find_next_zero_bit(map, mapsize, last_entry); |
421 | } | 421 | } |
422 | 422 | ||
423 | if (entry > mapsize) | 423 | if (entry > mapsize) { |
424 | kfree(ca_dmamap); | ||
424 | goto map_return; | 425 | goto map_return; |
426 | } | ||
425 | 427 | ||
426 | for (i = 0; i < entries; i++) | 428 | for (i = 0; i < entries; i++) |
427 | set_bit(entry + i, map); | 429 | set_bit(entry + i, map); |