]> git.baikalelectronics.ru Git - kernel.git/commit
mlx4_core: Fix infinite loop on device initialization
authorRoland Dreier <rolandd@cisco.com>
Sat, 13 Oct 2007 21:10:50 +0000 (14:10 -0700)
committerRoland Dreier <rolandd@cisco.com>
Sat, 13 Oct 2007 21:10:50 +0000 (14:10 -0700)
commit636a3fdf3b6d18528cf44db4ef7c362fc7c6adff
tree37787d8ee8d5192213bff8b8916499591e25058b
parent6c08bd371f6c36f4cf5f7dd8375a618802ff07f2
mlx4_core: Fix infinite loop on device initialization

Commit 943662da ("mlx4_core: Fix section mismatches") introduced a
stupid bug in device init: when some of mlx4_init_one() was split off
into __mlx4_init_one(), the call from the main mlx4_init_one()
function was back to mlx4_init_one() rather than to __mlx4_init_one(),
which leads to an obvious infinite loop if the function is every
called.

Signed-off-by: Roland Dreier <rolandd@cisco.com>
drivers/net/mlx4/main.c