linux/drivers/infiniband/hw/i40iw
Dan Carpenter 6031e079aa IB/i40iw: Fix error code in i40iw_create_cq()
We accidentally forgot to set the error code if ib_copy_from_udata()
fails.  It means we return ERR_PTR(0) which is NULL and results in a
NULL dereference in the callers.

Fixes: d374984179 ("i40iw: add files for iwarp interface")
Signed-off-by: Dan Carpenter <dan.carpenter@oracle.com>
Acked-by: Shiraz Saleem <shiraz.saleem@intel.com>
Signed-off-by: Doug Ledford <dledford@redhat.com>
2017-07-20 11:20:49 -04:00
..
Kconfig
Makefile
i40iw.h i40iw: Avoid memory leak of CQP request objects 2017-07-20 11:20:49 -04:00
i40iw_cm.c i40iw: Release cm_id ref on PCI function reset 2017-07-20 11:20:49 -04:00
i40iw_cm.h
i40iw_ctrl.c i40iw: Do not poll CCQ after it is destroyed 2017-07-20 11:20:48 -04:00
i40iw_d.h
i40iw_hmc.c
i40iw_hmc.h
i40iw_hw.c
i40iw_main.c i40iw: Avoid memory leak of CQP request objects 2017-07-20 11:20:49 -04:00
i40iw_osdep.h RDMA/i40iw: Remove MSS change support 2017-06-01 16:59:52 -04:00
i40iw_p.h
i40iw_pble.c
i40iw_pble.h
i40iw_puda.c i40iw: Update list correctly 2017-07-20 11:20:49 -04:00
i40iw_puda.h
i40iw_register.h
i40iw_status.h
i40iw_type.h RDMA/i40iw: Remove MSS change support 2017-06-01 16:59:52 -04:00
i40iw_ucontext.h i40iw: Set 128B as the only supported RQ WQE size 2016-12-22 11:36:12 -05:00
i40iw_uk.c RDMA/i40iw: use designated initializers 2017-01-12 11:38:41 -05:00
i40iw_user.h i40iw: Set 128B as the only supported RQ WQE size 2016-12-22 11:36:12 -05:00
i40iw_utils.c i40iw: Avoid memory leak of CQP request objects 2017-07-20 11:20:49 -04:00
i40iw_verbs.c IB/i40iw: Fix error code in i40iw_create_cq() 2017-07-20 11:20:49 -04:00
i40iw_verbs.h i40iw: Free QP PBLEs when the QP is destroyed 2017-07-20 11:20:49 -04:00
i40iw_vf.c
i40iw_vf.h
i40iw_virtchnl.c RDMA/i40iw: fix duplicated code for different branches 2017-06-01 17:00:29 -04:00
i40iw_virtchnl.h