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