linux_dsm_epyc7002/drivers/infiniband
Leon Romanovsky 925f7ea7a6 RDMA/cm: Fix access to uninitialized variable
The ndev will be initialized and held only for successful
ib_get_cached_gid(), otherwise it is garbage stack memory.
Calling dev_put() in failure path is wrong.

Fixes: 16c72e4028 ("IB/cm: Refactor to avoid setting path record software only fields")
Signed-off-by: Parav Pandit <parav@mellanox.com>
Signed-off-by: Leon Romanovsky <leonro@mellanox.com>
Reviewed-by: Yuval Shaia <yuval.shaia@oracle.com>
Signed-off-by: Jason Gunthorpe <jgg@mellanox.com>
2018-01-28 14:07:16 -07:00
..
core RDMA/cm: Fix access to uninitialized variable 2018-01-28 14:07:16 -07:00
hw RDMA/mlx5: Avoid memory leak in case of XRCD dealloc failure 2018-01-28 14:07:16 -07:00
sw RDMA/rxe: Fix rxe_qp_cleanup() 2018-01-18 14:49:20 -05:00
ulp IB/iser: Combine substrings for three messages 2018-01-28 14:07:16 -07:00
Kconfig IB: INFINIBAND should depend on HAS_DMA 2017-11-30 16:01:28 -07:00
Makefile IB/rdmavt: Create module framework and handle driver registration 2016-03-10 20:37:04 -05:00