b53: fix memory out of bounds access on 64 bit targets
authorJonas Gorski <jogo@openwrt.org>
Wed, 10 Jun 2015 09:21:36 +0000 (09:21 +0000)
committerJonas Gorski <jogo@openwrt.org>
Wed, 10 Jun 2015 09:21:36 +0000 (09:21 +0000)
commit3f11edc2c35c3c9c0ab11cfff0b37658215bd377
tree8e247e5d9c2f4f0f894f4ea5abf5de26bf07f2e0
parent9532a74bc533a538daabe209131c66277adb7f4b
b53: fix memory out of bounds access on 64 bit targets

On device reset the sizes for the vlan and port tables were wrongly
calculated based on the pointer size instead of the struct size. This
causes buffer overruns on 64 bit targets, resulting in panics.

Fix this by dereferencing the pointers.

Reported-by: Fedor Konstantinov <blmink@mink.su>
Signed-off-by: Jonas Gorski <jogo@openwrt.org>
SVN-Revision: 45938
target/linux/generic/files/drivers/net/phy/b53/b53_common.c