Commit dc366f8e authored by Viresh Kumar's avatar Viresh Kumar Committed by Greg Kroah-Hartman

greybus: loopback: Print error on data mismatch

Signed-off-by: default avatarViresh Kumar <viresh.kumar@linaro.org>
Reviewed-by: default avatarBryan O'Donoghue <bryan.odnoghue@linaro.org>
Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@google.com>
parent dc4a1069
......@@ -287,8 +287,10 @@ static int gb_loopback_transfer(struct gb_loopback *gb, u32 len)
if (retval)
goto gb_error;
if (memcmp(request->data, response->data, len))
if (memcmp(request->data, response->data, len)) {
pr_info("%s: Loopback Data doesn't match\n", __func__);
retval = -EREMOTEIO;
}
gb_error:
kfree(request);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment