]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
RDMA/uverbs: Initialize cq_context appropriately
authorBharat Potnuri <bharat@chelsio.com>
Tue, 1 Aug 2017 05:28:35 +0000 (10:58 +0530)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 30 Aug 2017 08:26:38 +0000 (10:26 +0200)
commit51f49383a9249e5871241254f64228376a3e0af2
treee1ba589c1e6cc444fd5e2c5380014f79773ce89b
parent53a38dfbb5e48ebc082613a16bd2371ad85a5842
RDMA/uverbs: Initialize cq_context appropriately

commit 65159c051c45f269cf40a14f9404248f2d524920 upstream.

Initializing cq_context with ev_queue in create_cq(), leads to NULL pointer
dereference in ib_uverbs_comp_handler(), if application doesnot use completion
channel. This patch fixes the cq_context initialization.

Fixes: 1e7710f3f65 ("IB/core: Change completion channel to use the reworked")
Signed-off-by: Potnuri Bharat Teja <bharat@chelsio.com>
Reviewed-by: Matan Barak <matanb@mellanox.com>
Signed-off-by: Doug Ledford <dledford@redhat.com>
(cherry picked from commit 699a2d5b1b880b4e4e1c7d55fa25659322cf5b51)
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/infiniband/core/uverbs_cmd.c