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: 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>
2017-07-20 11:20:49 -04:00
..
2016-12-05 16:09:42 -05:00
2016-02-29 17:10:53 -05:00
2016-02-29 17:10:53 -05:00
2016-02-29 17:10:53 -05:00
2017-07-20 11:20:49 -04:00
2016-03-16 13:50:53 -04:00