rdma_cm: fail iwarp accepts w/o connection params
authorSteve Wise <swise@opengridcomputing.com>
Tue, 21 Feb 2017 19:21:57 +0000 (11:21 -0800)
committerDoug Ledford <dledford@redhat.com>
Wed, 22 Feb 2017 20:35:03 +0000 (15:35 -0500)
commitf2625f7db4dd0bbd16a9c7d2950e7621f9aa57ad
treec66f8f03b9ee695ea4775407e9741a40b254a508
parent9294000d6d895ad609f3cc4aff98c9c6175b466f
rdma_cm: fail iwarp accepts w/o connection params

cma_accept_iw() needs to return an error if conn_params is NULL.
Since this is coming from user space, we can crash.

Reported-by: Shaobo He <shaobo@cs.utah.edu>
Acked-by: Sean Hefty <sean.hefty@intel.com>
Signed-off-by: Steve Wise <swise@opengridcomputing.com>
Cc: stable@vger.kernel.org
Signed-off-by: Doug Ledford <dledford@redhat.com>
drivers/infiniband/core/cma.c