aboutsummaryrefslogtreecommitdiff
path: root/net/unix/sysctl_net_unix.c
diff options
context:
space:
mode:
authorMichael J. Ruhl <[email protected]>2018-02-01 12:31:06 -0800
committerJason Gunthorpe <[email protected]>2018-02-01 15:43:32 -0700
commit2ff124d597c2df8696169ce0006fc974c49a4569 (patch)
treec9a7474d1f06fbf0abd438f40255cf76214f92e3 /net/unix/sysctl_net_unix.c
parent87daac68f77a3e21a1113f816e6a7be0b38bdde8 (diff)
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 'net/unix/sysctl_net_unix.c')
0 files changed, 0 insertions, 0 deletions