RDMA/cxgb4: Protect from possible dereference
authorLeon Romanovsky <leon@kernel.org>
Sun, 29 Oct 2017 19:34:35 +0000 (21:34 +0200)
committerDoug Ledford <dledford@redhat.com>
Mon, 13 Nov 2017 18:53:22 +0000 (13:53 -0500)
commit9950acf945f55222385d85489617e1d81e45fe34
treee63621afade4a07df41c85a6e6a061a3d798156e
parente32d2d7144efca745f6d182ac9abd16ee6c7598e
RDMA/cxgb4: Protect from possible dereference

Smatch tool reports the following error:
  drivers/infiniband/hw/cxgb4/qp.c:1886
c4iw_create_qp() error: we previously assumed 'ucontext'
could be null (see line 1804)

Cc: Steve Wise <swise@opengridcomputing.com>
Signed-off-by: Leon Romanovsky <leon@kernel.org>
Reviewed-by: Steve Wise <swise@opengridcomputing.com>
Signed-off-by: Doug Ledford <dledford@redhat.com>
drivers/infiniband/hw/cxgb4/qp.c