Source-Changes-D archive

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

Re: CVS commit: src/sys/dev/usb




To: Christos Zoulas <christos%astron.com@localhost>

Subject: Re: CVS commit: src/sys/dev/usb

From: Manuel Bouyer <bouyer%antioche.eu.org@localhost>

Date: Sat, 21 Apr 2018 09:30:20 +0200


On Fri, Apr 20, 2018 at 11:12:41PM +0000, Christos Zoulas wrote:
> In article <20180420213017.GA1811%antioche.eu.org@localhost>,
> Manuel Bouyer  <bouyer%antioche.eu.org@localhost> wrote:
> >On Fri, Apr 20, 2018 at 05:03:00PM -0400, Christos Zoulas wrote:
> >> Module Name: src
> >> Committed By: christos
> >> Date:  Fri Apr 20 21:03:00 UTC 2018
> >> 
> >> Modified Files:
> >>  src/sys/dev/usb: if_axe.c
> >> 
> >> Log Message:
> >> It was not gcc's fault for correctly detecting an uninitialized variable.
> >> Fix the uninitialized variable issues by error checking things.
> >
> >@@ -507,7 +511,7 @@
> >        ifp->if_flags &= ~IFF_ALLMULTI;
> >        rxmode |= AXE_RXCMD_MULTICAST;
> > 
> >-       axe_cmd(sc, AXE_CMD_WRITE_MCAST, 0, 0, (void *)&hashtbl);
> >+       axe_cmd(sc, AXE_CMD_WRITE_MCAST, 0, 0, hashtbl);
> >
> >missing & ?
> 
>         uint8_t hashtbl[8] = { 0, 0, 0, 0, 0, 0, 0, 0 }; 

So I guess the code was wrong before; not sure how multicast could have
worked.

Does this requires pullups ?

-- 
Manuel Bouyer <bouyer%antioche.eu.org@localhost>
     NetBSD: 26 ans d'experience feront toujours la difference
--


Follow-Ups:

Re: CVS commit: src/sys/dev/usb
From: Christos Zoulas

Re: CVS commit: src/sys/dev/usb
From: Martin Husemann


References:

Re: CVS commit: src/sys/dev/usb
From: Manuel Bouyer

Re: CVS commit: src/sys/dev/usb
From: Christos Zoulas




Prev by Date: Re: CVS commit: src/sys/dev/usb

Next by Date: Re: CVS commit: src/sys/dev/usb

Previous by Thread: Re: CVS commit: src/sys/dev/usb

Next by Thread: Re: CVS commit: src/sys/dev/usb

Indexes:

reverse Date

reverse Thread

Old Index



Home | Main Index | Thread Index | Old Index