]> Zhao Yanbai Git Server - minix.git/commitdiff
Fix VirtualBox Lance bug; ec_reinit should be called only once.
authorArun Thomas <arun@minix3.org>
Tue, 21 Jul 2009 13:13:45 +0000 (13:13 +0000)
committerArun Thomas <arun@minix3.org>
Tue, 21 Jul 2009 13:13:45 +0000 (13:13 +0000)
drivers/lance/lance.c

index 09fba5044134d9f2728bd7b4d2bc3be931fe0c28..70ae86837c7f6b59b9f4ab58b701e39826c2243b 100644 (file)
@@ -494,6 +494,7 @@ message *mp;
   int port;
   ether_card_t *ec;
   message reply_mess;
+  static int first_time = 1;
 
 pci_init();
 
@@ -566,7 +567,11 @@ pci_init();
     ec->flags |= ECF_BROAD;
 
   ec->client = mp->m_source;
-  ec_reinit(ec);
+  if (first_time)
+  {
+     first_time = 0;
+     ec_reinit(ec);
+  }
 
   reply_mess.m_type = DL_CONF_REPLY;
   reply_mess.m3_i1 = mp->DL_PORT;