linux/drivers/infiniband
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
..
core IB/core: Allow QP state transition from reset to error 2017-07-17 21:21:30 -04:00
hw IB/i40iw: Fix error code in i40iw_create_cq() 2017-07-20 11:20:49 -04:00
sw IB/rxe: Set dma_mask and coherent_dma_mask 2017-07-17 21:21:27 -04:00
ulp IB/IPoIB: Fix error code in ipoib_add_port() 2017-07-20 11:20:49 -04:00
Kconfig IB/opa-vnic: Virtual Network Interface Controller (VNIC) netdev 2017-04-20 12:01:38 -04:00
Makefile IB/rdmavt: Create module framework and handle driver registration 2016-03-10 20:37:04 -05:00