my version

Fork of lwip-eth by mbed official

Files at this revision

API Documentation at this revision

Comitter:
mbed_official
Date:
Thu Feb 05 13:45:38 2015 +0000
Parent:
22:fa7e1e2c6eb3
Child:
24:f274b521b211
Commit message:
Synchronized with git revision 3365a1117d8f34a9def10bbceddc1fdc6b1a7835

Full URL: https://github.com/mbedmicro/mbed/commit/3365a1117d8f34a9def10bbceddc1fdc6b1a7835/

RZ_A1H - Fix a bug that Ether Driver there is a case where the transmission

Changed in this revision

arch/TARGET_RZ_A1H/rza1_emac.c Show annotated file Show diff for this revision Revisions of this file
--- a/arch/TARGET_RZ_A1H/rza1_emac.c	Thu Nov 06 11:00:57 2014 +0000
+++ b/arch/TARGET_RZ_A1H/rza1_emac.c	Thu Feb 05 13:45:38 2015 +0000
@@ -63,7 +63,7 @@
     struct netif *netif = (struct netif*)arg;
     s32_t        connect_sts = 0;   /* 0: disconnect, 1:connect */
     s32_t        link_sts;
-    s32_t        link_mode_new;
+    s32_t        link_mode_new = NEGO_FAIL;
     s32_t        link_mode_old = NEGO_FAIL;
 
     while (1) {
@@ -125,7 +125,6 @@
             }
         }
     }
-    pbuf_free(p);
 
     return err;
 }