Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/sys/dev/usb Initialize all fields in bcdc header.



details:   https://anonhg.NetBSD.org/src/rev/57462ac2fa85
branches:  trunk
changeset: 356940:57462ac2fa85
user:      jmcneill <jmcneill%NetBSD.org@localhost>
date:      Sat Oct 21 18:18:44 2017 +0000

description:
Initialize all fields in bcdc header.

diffstat:

 sys/dev/usb/if_bwfm_usb.c |  4 +++-
 1 files changed, 3 insertions(+), 1 deletions(-)

diffs (19 lines):

diff -r 5e884cf4bbf5 -r 57462ac2fa85 sys/dev/usb/if_bwfm_usb.c
--- a/sys/dev/usb/if_bwfm_usb.c Sat Oct 21 15:20:52 2017 +0000
+++ b/sys/dev/usb/if_bwfm_usb.c Sat Oct 21 18:18:44 2017 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: if_bwfm_usb.c,v 1.1 2017/10/19 23:58:41 jmcneill Exp $ */
+/* $NetBSD: if_bwfm_usb.c,v 1.2 2017/10/21 18:18:44 jmcneill Exp $ */
 /* $OpenBSD: if_bwfm_usb.c,v 1.2 2017/10/15 14:55:13 patrick Exp $ */
 /*
  * Copyright (c) 2010-2016 Broadcom Corporation
@@ -760,7 +760,9 @@
 
        hdr = (void *)&data->buf[len];
        hdr->data_offset = 0;
+       hdr->priority = 0;
        hdr->flags = BWFM_BCDC_FLAG_VER(BWFM_BCDC_FLAG_PROTO_VER);
+       hdr->flags2 = 0;
        len += sizeof(*hdr);
 
        m_copydata(m, 0, m->m_pkthdr.len, &data->buf[len]);



Home | Main Index | Thread Index | Old Index