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

Commit ab88ca48 authored by Stefan Richter's avatar Stefan Richter
Browse files

firewire: fw-ohci: missing dma_unmap_single



at_context_queue_packet() didn't clean up in an early exit path.

Signed-off-by: default avatarStefan Richter <stefanr@s5r6.in-berlin.de>
Signed-off-by: default avatarKristian Høgsberg <krh@redhat.com>
parent e524f616
Loading
Loading
Loading
Loading
+3 −0
Original line number Diff line number Diff line
@@ -680,6 +680,9 @@ at_context_queue_packet(struct context *ctx, struct fw_packet *packet)

	/* FIXME: Document how the locking works. */
	if (ohci->generation != packet->generation) {
		if (packet->payload_length > 0)
			dma_unmap_single(ohci->card.device, payload_bus,
					 packet->payload_length, DMA_TO_DEVICE);
		packet->ack = RCODE_GENERATION;
		return -1;
	}