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)
commit5a2815f03c0fd5a091c95af93b7f1a17a971ac20
tree2a790316639dc28babca75bd51114e76c91bf7c9
parent4b48680b5572ee78834c276548e16ac5316908cb
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