]> err.no Git - linux-2.6/commit
IB/uverbs: Release lock on error path
authorGanapathi CH <cganapathi@novell.com>
Sun, 18 Jun 2006 03:37:40 +0000 (20:37 -0700)
committerRoland Dreier <rolandd@cisco.com>
Sun, 18 Jun 2006 03:37:40 +0000 (20:37 -0700)
commit77f76013e3ffda605b20184db5862ce1efcb6f5a
treece0c5fb39d891027e2609f74a160eb54b15dce37
parentca222c6b2c48e1e0be330a55611ba394251330cb
IB/uverbs: Release lock on error path

If ibdev->alloc_ucontext() fails then ib_uverbs_get_context() does not
unlock file->mutex before returning error.

Signed-off by: Ganapathi CH <cganapathi@novell.com>
Signed-off-by: Roland Dreier <rolandd@cisco.com>
drivers/infiniband/core/uverbs_cmd.c