]> git.baikalelectronics.ru Git - kernel.git/commit
bcma: signedness bug in bcma_get_next_core()
authorDan Carpenter <error27@gmail.com>
Tue, 23 Aug 2011 19:15:35 +0000 (22:15 +0300)
committerJohn W. Linville <linville@tuxdriver.com>
Wed, 24 Aug 2011 18:41:44 +0000 (14:41 -0400)
commit2cd0a0e6f2f655d172f275d729beb7241d244926
tree0966130d351e6eab22bb635ad3c9704e23919c23
parent545e64eb4a13b9d9e68e109a91b04775d27e8285
bcma: signedness bug in bcma_get_next_core()

The u32 would never be less than zero so the error handling would
break.  I changed it to s32 to match how bcma_erom_get_mst_port() is
declared.

Signed-off-by: Dan Carpenter <error27@gmail.com>
Signed-off-by: John W. Linville <linville@tuxdriver.com>
drivers/bcma/scan.c