mirror of
https://github.com/hardkernel/linux.git
synced 2026-06-10 12:57:06 +09:00
ethernet: support mac from idb ... supply
This commit is contained in:
@@ -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;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user