aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/infiniband/hw/hfi1/init.c
diff options
context:
space:
mode:
authorMichael J. Ruhl <michael.j.ruhl@intel.com>2018-02-01 12:31:06 -0800
committerJason Gunthorpe <jgg@mellanox.com>2018-02-01 15:43:32 -0700
commit2ff124d597c2df8696169ce0006fc974c49a4569 (patch)
treec9a7474d1f06fbf0abd438f40255cf76214f92e3 /drivers/infiniband/hw/hfi1/init.c
parentIB/core: Map iWarp AH type to undefined in rdma_ah_find_type (diff)
downloadlinux-dev-2ff124d597c2df8696169ce0006fc974c49a4569.tar.xz
linux-dev-2ff124d597c2df8696169ce0006fc974c49a4569.zip
IB/core: Avoid a potential OOPs for an unused optional parameter
The ev_file is an optional parameter for CQ creation. If the parameter is not passed, the ev_file pointer will be NULL. Using that pointer to set the cq_context will result in an OOPs. Verify that ev_file is not NULL before using. Cc: <stable@vger.kernel.org> # 4.14.x Fixes: 9ee79fce3642 ("IB/core: Add completion queue (cq) object actions") Reviewed-by: Dennis Dalessandro <dennis.dalessandro@intel.com> Reviewed-by: Ira Weiny <ira.weiny@intel.com> Signed-off-by: Michael J. Ruhl <michael.j.ruhl@intel.com> Signed-off-by: Dennis Dalessandro <dennis.dalessandro@intel.com> Signed-off-by: Jason Gunthorpe <jgg@mellanox.com>
Diffstat (limited to 'drivers/infiniband/hw/hfi1/init.c')
0 files changed, 0 insertions, 0 deletions