]> err.no Git - linux-2.6/commit
[IB] uverbs: Avoid NULL pointer deref on CQ async event
authorRoland Dreier <rolandd@cisco.com>
Sun, 30 Oct 2005 17:50:04 +0000 (09:50 -0800)
committerRoland Dreier <rolandd@cisco.com>
Mon, 31 Oct 2005 15:10:32 +0000 (07:10 -0800)
commit7162a3e0db34e914a8bc5bf74bbae0b386310cf8
treeffd7eba03f29dd2932dd32ac4adc2921bde7644b
parenta20583a7c2e35d80b1dfc1f60c9729498838725e
[IB] uverbs: Avoid NULL pointer deref on CQ async event

Userspace CQs that have no completion event channel attached end up
with their cq_context set to NULL.  However, asynchronous events like
"CQ overrun" can still occur on such CQs, so add a uverbs_file member
to struct ib_ucq_object that we can follow to deliver these events.

Signed-off-by: Roland Dreier <rolandd@cisco.com>
drivers/infiniband/core/uverbs.h
drivers/infiniband/core/uverbs_cmd.c
drivers/infiniband/core/uverbs_main.c