]> git.openfabrics.org - ~shefty/libibverbs.git/commit
The ibv_cmd_* create functions need to set context
authorSteve Wise <swise@opengridcomputing.com>
Fri, 19 Jan 2007 21:16:59 +0000 (15:16 -0600)
committerRoland Dreier <rolandd@cisco.com>
Mon, 29 Jan 2007 17:16:12 +0000 (09:16 -0800)
commit8b3d225476c99ea29a68109a7d40e5ef353d4388
tree7513a01d3c43d61f170739fa662cc78c5e9e1192
parent02ccdc3573c28a5c750e67723b4fed80ce2da870
The ibv_cmd_* create functions need to set context

If the ibv_cmd_* create function succeeds, then the object context
pointer must be set by that function so that the corresponding destroy
function will work.  This avoids problems in the error cleanup path of
a low-level driver's create function that fails after calling an
ibv_cmd_* create function.

Signed-off-by: Steve Wise <swise@opengridcomputing.com>
Signed-off-by: Roland Dreier <rolandd@cisco.com>
src/cmd.c
src/verbs.c