diff options
| author | Michael J. Ruhl <[email protected]> | 2018-02-01 20:31:06 +0000 |
|---|---|---|
| committer | Jason Gunthorpe <[email protected]> | 2018-02-01 22:43:32 +0000 |
| commit | 2ff124d597c2df8696169ce0006fc974c49a4569 (patch) | |
| tree | c9a7474d1f06fbf0abd438f40255cf76214f92e3 /drivers/gpu/drm/amd/amdgpu/amdgpu_ucode.c | |
| parent | IB/core: Map iWarp AH type to undefined in rdma_ah_find_type (diff) | |
| download | kernel-2ff124d597c2df8696169ce0006fc974c49a4569.tar.gz kernel-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: <[email protected]> # 4.14.x
Fixes: 9ee79fce3642 ("IB/core: Add completion queue (cq) object actions")
Reviewed-by: Dennis Dalessandro <[email protected]>
Reviewed-by: Ira Weiny <[email protected]>
Signed-off-by: Michael J. Ruhl <[email protected]>
Signed-off-by: Dennis Dalessandro <[email protected]>
Signed-off-by: Jason Gunthorpe <[email protected]>
Diffstat (limited to 'drivers/gpu/drm/amd/amdgpu/amdgpu_ucode.c')
0 files changed, 0 insertions, 0 deletions
