From owner-freebsd-current@FreeBSD.ORG Sat Jun 25 00:09:35 2005 Return-Path: X-Original-To: freebsd-current@freebsd.org Delivered-To: freebsd-current@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 2708016A41C for ; Sat, 25 Jun 2005 00:09:35 +0000 (GMT) (envelope-from Maksim.Yevmenkin@savvis.net) Received: from mailgate1b.savvis.net (mailgate1b.savvis.net [216.91.182.6]) by mx1.FreeBSD.org (Postfix) with ESMTP id E658443D48 for ; Sat, 25 Jun 2005 00:09:34 +0000 (GMT) (envelope-from Maksim.Yevmenkin@savvis.net) Received: from localhost (localhost.localdomain [127.0.0.1]) by mailgate1b.savvis.net (Postfix) with ESMTP id 8B7E83BEC8 for ; Fri, 24 Jun 2005 19:09:29 -0500 (CDT) Received: from mailgate1b.savvis.net ([127.0.0.1]) by localhost (mailgate1b.savvis.net [127.0.0.1]) (amavisd-new, port 10024) with LMTP id 30742-01-99 for ; Fri, 24 Jun 2005 19:09:29 -0500 (CDT) Received: from out001.email.savvis.net (out001.apptix.savvis.net [216.91.32.44]) by mailgate1b.savvis.net (Postfix) with ESMTP id 3C29B3BE2D for ; Fri, 24 Jun 2005 19:09:26 -0500 (CDT) Received: from s228130hz1ew031.apptix-01.savvis.net ([10.146.4.28]) by out001.email.savvis.net with Microsoft SMTPSVC(6.0.3790.211); Fri, 24 Jun 2005 19:09:22 -0500 Received: from [10.254.186.111] ([64.14.1.106]) by s228130hz1ew031.apptix-01.savvis.net with Microsoft SMTPSVC(6.0.3790.211); Fri, 24 Jun 2005 19:09:13 -0500 Message-ID: <42BCA0A0.8040902@savvis.net> Date: Fri, 24 Jun 2005 17:09:04 -0700 From: Maksim Yevmenkin User-Agent: Mozilla Thunderbird 1.0.2 (X11/20050404) X-Accept-Language: en-us, en MIME-Version: 1.0 To: freebsd-current@freebsd.org Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-OriginalArrivalTime: 25 Jun 2005 00:09:13.0632 (UTC) FILETIME=[1E6A4A00:01C5791A] X-Virus-Scanned: amavisd-new at savvis.net Subject: [patch] ep(4) panic X-BeenThere: freebsd-current@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Discussions about the use of FreeBSD-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 25 Jun 2005 00:09:35 -0000 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 @@ -73,6 +73,7 @@ struct ep_board *epb = &sc->epb; const char *desc; uint16_t result; + u_char eaddr[6]; int error; error = ep_alloc(dev); @@ -120,7 +121,7 @@ * 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