diff options
author | Dan Carpenter <dan.carpenter@oracle.com> | 2017-07-13 10:47:40 +0300 |
---|---|---|
committer | Doug Ledford <dledford@redhat.com> | 2017-07-20 11:20:49 -0400 |
commit | 6ebedacbb44602d4dec3348dee5ec31dd9b09521 (patch) | |
tree | da8292c509436a3867c9a711869afc32957ad28a /drivers/infiniband/hw/cxgb3/iwch_provider.c | |
parent | IB/i40iw: Fix error code in i40iw_create_cq() (diff) | |
download | linux-dev-6ebedacbb44602d4dec3348dee5ec31dd9b09521.tar.xz linux-dev-6ebedacbb44602d4dec3348dee5ec31dd9b09521.zip |
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: cfdda9d76436 ("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>
Diffstat (limited to 'drivers/infiniband/hw/cxgb3/iwch_provider.c')
0 files changed, 0 insertions, 0 deletions