linux/drivers/infiniband
Alex Estrin 2b1e7fe161 IB/hfi1: Fix for potential refcount leak in hfi1_open_file()
The dd refcount is speculatively incremented prior to allocating
the fd memory with kzalloc(). If that kzalloc() failed the dd
refcount leaks.
Increment refcount on kzalloc success.

Fixes: e11ffbd575 ("IB/hfi1: Do not free hfi1 cdev parent structure early")
Reviewed-by: Michael J Ruhl <michael.j.ruhl@intel.com>
Signed-off-by: Alex Estrin <alex.estrin@intel.com>
Signed-off-by: Jason Gunthorpe <jgg@mellanox.com>
2018-02-01 15:24:32 -07:00
..
core RDMA/nldev: missing error code in nldev_res_get_doit() 2018-02-01 15:24:32 -07:00
hw IB/hfi1: Fix for potential refcount leak in hfi1_open_file() 2018-02-01 15:24:32 -07:00
sw IB/rxe: remove redudant parameter in rxe_av_fill_ip_info 2018-01-31 16:32:10 -05:00
ulp Linux 4.15 2018-01-30 09:30:00 -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