commit | 5c8857b653e71a9850a02837e1268e3198abbd1a | [log] [tgz] |
---|---|---|
author | Dan Carpenter <dan.carpenter@oracle.com> | Thu Jul 13 10:45:48 2017 +0300 |
committer | Doug Ledford <dledford@redhat.com> | Thu Jul 20 11:20:49 2017 -0400 |
tree | dd3479ff4bcc74152fb5ade330fa4e062467fe53 | |
parent | 653f0a71daf1a71d55d3af368c28c8114c11c607 [diff] |
IB/IPoIB: Fix error code in ipoib_add_port() We accidentally don't see the error code on some of these error paths. It means we return ERR_PTR(0) which is NULL and it results in a NULL dereference in the caller. This bug dates to pre-git days. Signed-off-by: Dan Carpenter <dan.carpenter@oracle.com> Reviewed-by: Leon Romanovsky <leonro@mellanox.com> Signed-off-by: Doug Ledford <dledford@redhat.com>