IB/iser: Fix list iteration bug
authorArne Redlich <arne.redlich@xiranet.com>
Tue, 4 Mar 2008 12:07:22 +0000 (14:07 +0200)
committerRoland Dreier <rolandd@cisco.com>
Tue, 11 Mar 2008 04:15:49 +0000 (21:15 -0700)
The iteration through the list of "iser_device"s during device
lookup/creation is broken -- it might result in an infinite loop if
more than one HCA is used with iSER.  Fix this by using
list_for_each_entry() instead of the open-coded flawed list iteration
code.

Signed-off-by: Arne Redlich <arne.redlich@xiranet.com>
Signed-off-by: Erez Zilber <erezz@voltaire.com>
Signed-off-by: Roland Dreier <rolandd@cisco.com>

No differences found