ethernet: support mac from idb ... supply
authorhwg <hwg@rock-chips.com>
Thu, 21 Mar 2013 08:59:51 +0000 (16:59 +0800)
committerhwg <hwg@rock-chips.com>
Thu, 21 Mar 2013 08:59:51 +0000 (16:59 +0800)
drivers/net/eth_mac/eth_mac.c

index 7f2c64f564a241b3e1da8e7a230dc48e194986f8..b2b28075afbd3b59d35d5a83a64f40f261895fab 100755 (executable)
@@ -158,8 +158,7 @@ int eth_mac_wifi(u8 *eth_mac){
        char wifi_mac[32];\r
        mm_segment_t old_fs;\r
        ssize_t ret;\r
-\r
-       int *maci=(int *)kmalloc(6, GFP_KERNEL);\r
+       int maci[6];\r
 \r
        memset(eth_mac, 0, 6);\r
        \r
@@ -196,7 +195,6 @@ int eth_mac_wifi(u8 *eth_mac){
                 return -ENOENT;\r
         }\r
 \r
-       kfree(maci);\r
        filp_close(file,NULL);\r
        return 0;\r
        \r