projects
/
oweals
/
u-boot.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
9d15d1d
)
mach-snapdragon: Fix overwriting last digit of serial number
author
Jan-Christoph Tebbe
<jan-christoph.tebbe@ithinx.io>
Mon, 16 Mar 2020 16:51:51 +0000
(17:51 +0100)
committer
Tom Rini
<trini@konsulko.com>
Fri, 3 Apr 2020 15:47:47 +0000
(11:47 -0400)
When generating the MAC address based on the boards serial number
the last digit was overwritten with the null termination. That way
boards with serial numbers close to each other would use the same
MAC address.
Signed-off-by: Jan-Christoph Tebbe <Jan-Christoph.Tebbe@ithinx.io>
arch/arm/mach-snapdragon/misc.c
patch
|
blob
|
history
diff --git
a/arch/arm/mach-snapdragon/misc.c
b/arch/arm/mach-snapdragon/misc.c
index f6c87866c0e7218c4ee1f3608768f515c6fdf097..aaa561c2c68e9a8e3e7b0f1379a1ada49bc4a949 100644
(file)
--- a/
arch/arm/mach-snapdragon/misc.c
+++ b/
arch/arm/mach-snapdragon/misc.c
@@
-41,7
+41,7
@@
void msm_generate_mac_addr(u8 *mac)
int i;
char sn[9];
- snprintf(sn,
8
, "%08x", msm_board_serial());
+ snprintf(sn,
9
, "%08x", msm_board_serial());
/* fill in the mac with serialno, use locally adminstrated pool */
mac[0] = 0x02;