linux/drivers/infiniband/ulp/ipoib
Dan Carpenter 5c8857b653 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>
2017-07-20 11:20:49 -04:00
..
Kconfig kconfig: rename CONFIG_EMBEDDED to CONFIG_EXPERT 2011-01-20 17:02:05 -08:00
Makefile IB/ipoib: Add rtnl_link_ops support 2012-09-20 16:49:17 -04:00
ipoib.h IB/SA: Rename ib_sa_path_rec to sa_path_rec 2017-05-01 14:37:28 -04:00
ipoib_cm.c IB/IPoIB: Convert IPoIB to memalloc_noio_* calls 2017-07-17 21:21:23 -04:00
ipoib_ethtool.c RDMA/IPoIB: Replace netdev_priv with ipoib_priv for ipoib_get_link_ksettings 2017-06-01 17:20:09 -04:00
ipoib_fs.c IB/SA: Add OPA path record type 2017-05-01 14:39:02 -04:00
ipoib_ib.c IB: Convert msleep below 20ms to usleep_range 2017-07-17 21:21:22 -04:00
ipoib_main.c IB/IPoIB: Fix error code in ipoib_add_port() 2017-07-20 11:20:49 -04:00
ipoib_multicast.c IB/core: Define 'ib' and 'roce' rdma_ah_attr types 2017-05-01 14:32:43 -04:00
ipoib_netlink.c net: add netlink_ext_ack argument to rtnl_link_ops.changelink 2017-06-26 23:13:22 -04:00
ipoib_verbs.c IB/IPoIB: Support acceleration options callbacks 2017-04-20 15:19:44 -04:00
ipoib_vlan.c IB/ipoib: Fix memory leak in create child syscall 2017-06-14 15:16:23 -04:00