From: Amir Vadai Date: Wed, 1 Jul 2015 11:31:01 +0000 (+0300) Subject: IB/IPoIB: Fix bad error flow in ipoib_add_port() X-Git-Tag: omap-for-v4.3/fixes-merge-window~240^2~16 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=58e9cc90cda7bc732856a2ad3210328fbc4f6ca2;p=pandora-kernel.git IB/IPoIB: Fix bad error flow in ipoib_add_port() Error values of ib_query_port() and ib_query_device() weren't propagated correctly. Because of that, ipoib_add_port() could return NULL value, which escaped the IS_ERR() check in ipoib_add_one() and we crashed. Signed-off-by: Amir Vadai Signed-off-by: Or Gerlitz Reviewed-by: Ira Weiny Signed-off-by: Doug Ledford --- Reading git-diff-tree failed