Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 6bf6a1a4 authored by Julia Lawall's avatar Julia Lawall Committed by Tony Luck
Browse files

[IA64] arch/ia64/sn/pci/tioca_provider.c: introduce missing kfree



Error handling code following a kmalloc should free the allocated data.

Signed-off-by: default avatarJulia Lawall <julia@diku.dk>
Signed-off-by: default avatarTony Luck <tony.luck@intel.com>
parent 47633cf0
Loading
Loading
Loading
Loading
+3 −1
Original line number Diff line number Diff line
@@ -420,8 +420,10 @@ tioca_dma_mapped(struct pci_dev *pdev, u64 paddr, size_t req_size)
		entry = find_next_zero_bit(map, mapsize, last_entry);
	}

	if (entry > mapsize)
	if (entry > mapsize) {
		kfree(ca_dmamap);
		goto map_return;
	}

	for (i = 0; i < entries; i++)
		set_bit(entry + i, map);