commit | 6031e079aa4656743298ea235b894ee883f45c71 | [log] [tgz] |
---|---|---|
author | Dan Carpenter <dan.carpenter@oracle.com> | Thu Jul 13 10:47:22 2017 +0300 |
committer | Doug Ledford <dledford@redhat.com> | Thu Jul 20 11:20:49 2017 -0400 |
tree | 23599baf40234cbd2fdbbd4818315cd499e42ed8 | |
parent | 5c8857b653e71a9850a02837e1268e3198abbd1a [diff] |
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>