linux/drivers/infiniband/hw/cxgb4
Dan Carpenter 6ebedacbb4 cxgb4: Fix error codes in c4iw_create_cq()
If one of these kmalloc() calls fails then we return ERR_PTR(0) which is
NULL.  It results in a NULL dereference in the callers.

Fixes: cfdda9d764 ("RDMA/cxgb4: Add driver for Chelsio T4 RNIC")
Signed-off-by: Dan Carpenter <dan.carpenter@oracle.com>
Acked-by: Steve Wise <swise@opengridcomputing.com>
Signed-off-by: Doug Ledford <dledford@redhat.com>
2017-07-20 11:20:49 -04:00
..
cm.c net: introduce __skb_put_[zero, data, u8] 2017-06-20 13:30:14 -04:00
cq.c cxgb4: Fix error codes in c4iw_create_cq() 2017-07-20 11:20:49 -04:00
device.c rdma/cxgb4: Fix memory leaks during module exit 2017-06-14 15:24:50 -04:00
ev.c cxgb4: Convert PDBG to pr_debug 2017-04-20 16:14:13 -04:00
id_table.c drivers/infiniband/hw: rename random32() to prandom_u32() 2013-05-07 18:38:27 -07:00
iw_cxgb4.h cxgb4: Convert PDBG to pr_debug 2017-04-20 16:14:13 -04:00
Kconfig libcxgb,iw_cxgb4,cxgbit: add cxgb_get_4tuple() 2016-09-15 20:49:19 -04:00
Makefile libcxgb,iw_cxgb4,cxgbit: add cxgb_get_4tuple() 2016-09-15 20:49:19 -04:00
mem.c net: introduce __skb_put_[zero, data, u8] 2017-06-20 13:30:14 -04:00
provider.c IB/core: Rename struct ib_ah_attr to rdma_ah_attr 2017-05-01 14:32:43 -04:00
qp.c net: introduce __skb_put_[zero, data, u8] 2017-06-20 13:30:14 -04:00
resource.c cxgb4: Convert PDBG to pr_debug 2017-04-20 16:14:13 -04:00
t4.h cxgb4: Convert PDBG to pr_debug 2017-04-20 16:14:13 -04:00
t4fw_ri_api.h iw_cxgb4: add fast-path for small REG_MR operations 2016-10-07 16:54:40 -04:00