greybus: operation: fix broken response tracepoint
authorJohan Hovold <johan@hovoldconsulting.com>
Tue, 26 Jul 2016 15:11:29 +0000 (17:11 +0200)
committerGreg Kroah-Hartman <gregkh@google.com>
Tue, 26 Jul 2016 21:53:19 +0000 (14:53 -0700)
commit112f563e1879ab73853fed9d875f45d96d5990fd
tree562d9e0674d7b9e8f2d603520252d727578bf483
parentdfcba8626f55fe5d6ba6e2847178cbf629740773
greybus: operation: fix broken response tracepoint

The response-received tracepoint is currently broken. Instead of parsing
the received message header it was tracing a bunch of zeroed fields from
an uninitialised response buffer.

Fix this by moving the tracepoint after were the response buffer is
initialised.

Fixes: 7cb496e6890e ("greybus: tracing: fix message traces")
Reviewed-by: Viresh Kumar <viresh.kumar@linaro.org>
Reviewed-by: Bryan O'Donoghue <bryan.odonoghue@linaro.org>
Signed-off-by: Johan Hovold <johan@hovoldconsulting.com>
Reviewed-by: Alex Elder <elder@linaro.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@google.com>
drivers/staging/greybus/operation.c