projects
/
firefly-linux-kernel-4.4.55.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
bb05601
)
ethernet: support mac from idb ... supply
author
hwg
<hwg@rock-chips.com>
Thu, 21 Mar 2013 08:59:51 +0000
(16:59 +0800)
committer
hwg
<hwg@rock-chips.com>
Thu, 21 Mar 2013 08:59:51 +0000
(16:59 +0800)
drivers/net/eth_mac/eth_mac.c
patch
|
blob
|
history
diff --git
a/drivers/net/eth_mac/eth_mac.c
b/drivers/net/eth_mac/eth_mac.c
index 7f2c64f564a241b3e1da8e7a230dc48e194986f8..b2b28075afbd3b59d35d5a83a64f40f261895fab 100755
(executable)
--- 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];
\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