]> git.baikalelectronics.ru Git - kernel.git/commit
[PATCH] IB/mthca: Don't try to set srq->last for userspace SRQs
authorRoland Dreier <rolandd@cisco.com>
Mon, 19 Sep 2005 16:17:56 +0000 (09:17 -0700)
committerRoland Dreier <rolandd@cisco.com>
Mon, 19 Sep 2005 16:17:56 +0000 (09:17 -0700)
commit6d3b970b22070c16dc45375b0927f7a0341dc54b
tree3c3be701f7954d52f850c116903deb2698bb8038
parent155ef341c9cb67469c563a9173f8b0af26db89b2
[PATCH] IB/mthca: Don't try to set srq->last for userspace SRQs

Userspace SRQs don't have a buffer allocated for them in the kernel, so
it doesn't make sense to set srq->last during initialization.  In fact,
this can crash trying to follow a nonexistent buffer pointer.

Signed-off-by: Roland Dreier <rolandd@cisco.com>
drivers/infiniband/hw/mthca/mthca_srq.c