ALSA: firewire-lib: fix wrong assignment for 'out_packet_without_header' tracepoint
authorTakashi Sakamoto <o-takashi@sakamocchi.jp>
Sat, 15 Dec 2018 10:03:20 +0000 (19:03 +0900)
committerTakashi Iwai <tiwai@suse.de>
Sun, 16 Dec 2018 09:10:19 +0000 (10:10 +0100)
An initial commit to add tracepoints for packets without CIP headers
introduces a wrong assignment to 'data_blocks' value of
'out_packet_without_header' tracepoint.

This commit fixes the bug.

Cc: <stable@vger.kernel.org> # v4.12+
Fixes: b164d2fd6e49 ('ALSA: firewire_lib: add tracepoints for packets without CIP headers')
Signed-off-by: Takashi Sakamoto <o-takashi@sakamocchi.jp>
Signed-off-by: Takashi Iwai <tiwai@suse.de>
sound/firewire/amdtp-stream-trace.h

index 54cdd4ffa9ceb1a0fb3a1967dc0fd8bd1c7f3412..c05b3da0aa1cee1d2e41f309313d9a57ecb9bf96 100644 (file)
@@ -169,7 +169,7 @@ TRACE_EVENT(out_packet_without_header,
                __entry->dest = fw_parent_device(s->unit)->node_id;
                __entry->payload_quadlets = payload_length / 4;
                __entry->data_blocks = data_blocks,
-               __entry->data_blocks = s->data_block_counter,
+               __entry->data_block_counter = s->data_block_counter,
                __entry->packet_index = s->packet_index;
                __entry->irq = !!in_interrupt();
                __entry->index = index;