From fada4ac28a7f4034804633e1e17d1b62330564c6 Mon Sep 17 00:00:00 2001 From: hwg Date: Thu, 21 Mar 2013 16:59:51 +0800 Subject: [PATCH] ethernet: support mac from idb ... supply --- drivers/net/eth_mac/eth_mac.c | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/drivers/net/eth_mac/eth_mac.c b/drivers/net/eth_mac/eth_mac.c index 7f2c64f564a2..b2b28075afbd 100755 --- a/drivers/net/eth_mac/eth_mac.c +++ b/drivers/net/eth_mac/eth_mac.c @@ -158,8 +158,7 @@ int eth_mac_wifi(u8 *eth_mac){ char wifi_mac[32]; mm_segment_t old_fs; ssize_t ret; - - int *maci=(int *)kmalloc(6, GFP_KERNEL); + int maci[6]; memset(eth_mac, 0, 6); @@ -196,7 +195,6 @@ int eth_mac_wifi(u8 *eth_mac){ return -ENOENT; } - kfree(maci); filp_close(file,NULL); return 0; -- 2.34.1