Commit b50c460a authored by Rupesh Gujare's avatar Rupesh Gujare Committed by Greg Kroah-Hartman

staging: ozwpan: Set farewell report length.

Fixes a bug where we were not setting length field causing wrong
report size to be copied.
Signed-off-by: default avatarRupesh Gujare <rupesh.gujare@atmel.com>
Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
parent baaaef13
...@@ -296,6 +296,7 @@ static void oz_add_farewell(struct oz_pd *pd, u8 ep_num, u8 index, ...@@ -296,6 +296,7 @@ static void oz_add_farewell(struct oz_pd *pd, u8 ep_num, u8 index,
return; return;
f->ep_num = ep_num; f->ep_num = ep_num;
f->index = index; f->index = index;
f->len = len;
memcpy(f->report, report, len); memcpy(f->report, report, len);
oz_dbg(ON, "RX: Adding farewell report\n"); oz_dbg(ON, "RX: Adding farewell report\n");
spin_lock(&g_polling_lock); spin_lock(&g_polling_lock);
......
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