staging: ozwpan: Set farewell report length.
authorRupesh Gujare <rupesh.gujare@atmel.com>
Thu, 1 Aug 2013 17:45:02 +0000 (18:45 +0100)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Fri, 2 Aug 2013 03:57:54 +0000 (11:57 +0800)
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>
drivers/staging/ozwpan/ozproto.c

index ec602863fecaced21f612564eb7313988f0bfcc3..084307a1083f19cea99329e0160f0e8c57b7fc06 100644 (file)
@@ -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);