[patch] ep(4) panic

From: Maksim Yevmenkin <maksim.yevmenkin_at_savvis.net>
Date: Fri, 24 Jun 2005 17:09:04 -0700
Dear Hackers,

my -current panics when i insert ep(4) pcmcia network adapter. following 
is the patch to fix the panic.

--- if_ep_pccard.c.orig Fri Jun 10 12:04:44 2005
+++ if_ep_pccard.c      Fri Jun 24 16:51:12 2005
_at__at_ -73,6 +73,7 _at__at_
         struct ep_board *epb = &sc->epb;
         const char *desc;
         uint16_t result;
+       u_char eaddr[6];
         int error;

         error = ep_alloc(dev);
_at__at_ -120,7 +121,7 _at__at_
          * Newer cards supported by this device need to have their
          * MAC address set.
          */
-       error = ep_get_macaddr(sc, (u_char *)&IFP2ENADDR(sc->ifp));
+       error = ep_get_macaddr(sc, eaddr);

         ep_free(dev);
         return (0);

thanks,
max
Received on Fri Jun 24 2005 - 22:09:35 UTC

This archive was generated by hypermail 2.4.0 : Wed May 19 2021 - 11:38:37 UTC