]> git.baikalelectronics.ru Git - kernel.git/commit
ARM: orion5x: Revert commit 15316abc2e3c.
authorDavid S. Miller <davem@davemloft.net>
Mon, 26 Feb 2018 18:41:47 +0000 (13:41 -0500)
committerDavid S. Miller <davem@davemloft.net>
Mon, 26 Feb 2018 18:41:47 +0000 (13:41 -0500)
commitc78a0b127ff2ed6f212d06454bb4153d9b1e66ac
treeda513bc5fc70d1c9cff3bda089fc8305b4b4667b
parentba376859a4bf407598f9e8003cae6ed6cf30dc60
ARM: orion5x: Revert commit 15316abc2e3c.

It is not valid for orion5x to use mac_pton().

First of all, the orion5x buffer is not NULL terminated.  mac_pton()
has no business operating on non-NULL terminated buffers because
only the caller can know that this is valid and in what manner it
is ok to parse this NULL'less buffer.

Second of all, orion5x operates on an __iomem pointer, which cannot
be dereferenced using normal C pointer operations.  Accesses to
such areas much be performed with the proper iomem accessors.

Fixes: 15316abc2e3c ("ARM: orion5x: use mac_pton() helper")
Signed-off-by: David S. Miller <davem@davemloft.net>
arch/arm/mach-orion5x/Kconfig
arch/arm/mach-orion5x/dns323-setup.c
arch/arm/mach-orion5x/tsx09-common.c