RDMA/cma: Check for NULL conn_param in rdma_accept
authorHefty, Sean <sean.hefty@intel.com>
Thu, 6 Oct 2011 16:33:04 +0000 (09:33 -0700)
committerRoland Dreier <roland@purestorage.com>
Thu, 6 Oct 2011 16:33:04 +0000 (09:33 -0700)
commitf45ee80eb0dda1fbf32bf63189627a9e1e157a95
tree248b7dc6be8edf4d1ce212140c942ca654143245
parent10889a36437ffe92c9b81041525ac9661a8f2c92
RDMA/cma: Check for NULL conn_param in rdma_accept

Check that conn_param is not null before dereferencing it when
processing rdma_accept().  This is necessary to prevent a possible
system crash, which can be caused by user space.

Problem found by code inspection.

Signed-off-by: Sean Hefty <sean.hefty@intel.com>
Signed-off-by: Roland Dreier <roland@purestorage.com>
drivers/infiniband/core/cma.c