]> git.openfabrics.org - ~shefty/libibverbs.git/commit
The ibv_cmd_* create functions need to set context
authorRoland Dreier <rolandd@cisco.com>
Mon, 29 Jan 2007 17:17:50 +0000 (09:17 -0800)
committerRoland Dreier <rolandd@cisco.com>
Mon, 29 Jan 2007 17:17:50 +0000 (09:17 -0800)
commit5eaee85aec025be16e5aeeaac64abc6d8d9c191c
tree929b122c78d1abfd075008b5b89cfd85adda03e6
parent9fc3f4d57105a5d9e7e19fd8cfa7c694eb307d99
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>
(cherry picked from commit 8b3d225476c99ea29a68109a7d40e5ef353d4388)
src/cmd.c
src/verbs.c