diff options
author | Rupesh Gujare <rupesh.gujare@atmel.com> | 2013-08-01 18:45:02 +0100 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2013-08-02 11:57:54 +0800 |
commit | b50c460a6c03284f7e1b4cfe9266df0f9169ad24 (patch) | |
tree | 682be0102e37a0fde80d43fb353b1549a556e5d8 /drivers/staging/ozwpan | |
parent | baaaef1383d3708f02b2316d2d6f2bda0980fad7 (diff) |
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>
Diffstat (limited to 'drivers/staging/ozwpan')
-rw-r--r-- | drivers/staging/ozwpan/ozproto.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/staging/ozwpan/ozproto.c b/drivers/staging/ozwpan/ozproto.c index ec602863feca..084307a1083f 100644 --- a/drivers/staging/ozwpan/ozproto.c +++ b/drivers/staging/ozwpan/ozproto.c @@ -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); |