mirror of
https://github.com/torvalds/linux.git
synced 2024-12-29 14:21:47 +00:00
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: Rupesh Gujare <rupesh.gujare@atmel.com> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
This commit is contained in:
parent
baaaef1383
commit
b50c460a6c
@ -296,6 +296,7 @@ static void oz_add_farewell(struct oz_pd *pd, u8 ep_num, u8 index,
|
||||
return;
|
||||
f->ep_num = ep_num;
|
||||
f->index = index;
|
||||
f->len = len;
|
||||
memcpy(f->report, report, len);
|
||||
oz_dbg(ON, "RX: Adding farewell report\n");
|
||||
spin_lock(&g_polling_lock);
|
||||
|
Loading…
Reference in New Issue
Block a user