]> git.baikalelectronics.ru Git - kernel.git/commit
IPoIB: Don't attempt to release resources on error flow
authorItai Garbi <igarbi@mellanox.com>
Tue, 19 Feb 2013 15:40:24 +0000 (15:40 +0000)
committerRoland Dreier <roland@purestorage.com>
Tue, 19 Feb 2013 16:21:36 +0000 (08:21 -0800)
commit6a5162b42a617ad2399140e6682785930630fb40
tree2a790316639dc28babca75bd51114e76c91bf7c9
parent1091693a41d4b1d709365ff5489a3466894d1cfd
IPoIB: Don't attempt to release resources on error flow

If the ipoib client info isn't found on the _remove_one callback, we
must not attempt to scan the returned null list.  Found by Coverity.

Signed-off-by: Itai Garbi <igarbi@mellanox.com>
Signed-off-by: Or Gerlitz <ogerlitz@mellanox.com>
Signed-off-by: Roland Dreier <roland@purestorage.com>
drivers/infiniband/ulp/ipoib/ipoib_main.c