]> git.baikalelectronics.ru Git - kernel.git/commit
bcma: fix handling of big addrl
authorHauke Mehrtens <hauke@hauke-m.de>
Mon, 15 Jul 2013 11:15:08 +0000 (13:15 +0200)
committerJohn W. Linville <linville@tuxdriver.com>
Mon, 22 Jul 2013 20:54:40 +0000 (16:54 -0400)
commitc58cdbd4ccbc70f7c3db06016432962b458fe6b2
tree3a431ba000456c6b76e4417a5764a766dac81743
parent1acf9728b2cfdc183abe7b23322c7dcf4933de5b
bcma: fix handling of big addrl

The return value of bcma_erom_get_addr_desc() is a unsigned value and it
could wrap around in the two complement writing. This happens for one
core in the BCM4708 SoC.

Signed-off-by: Hauke Mehrtens <hauke@hauke-m.de>
Signed-off-by: John W. Linville <linville@tuxdriver.com>
drivers/bcma/scan.c