]> pilppa.com Git - linux-2.6-omap-h63xx.git/commit
IB/uverbs: Release event file reference on ib_uverbs_create_cq() error
authorJack Morgenstein <jackm@mellanox.co.il>
Sat, 7 Jan 2006 00:43:14 +0000 (16:43 -0800)
committerRoland Dreier <rolandd@cisco.com>
Sat, 7 Jan 2006 00:43:14 +0000 (16:43 -0800)
commitac4e7b35579de55db50d602a472858867808a9c3
tree09680302ee8c821bdea085af19d1d3b50ebcb4a9
parentea5d4a6ad2bfd1006790666981645cab43d3afbd
IB/uverbs: Release event file reference on ib_uverbs_create_cq() error

ib_uverbs_create_cq() should release the completion channel event file
if an error occurs after it looks it up.  Also, if userspace asks for
a completion channel and we don't find it, an error should be returned
instead of silently creating a CQ without a completion channel.

Signed-off-by: Jack Morgenstein <jackm@mellanox.co.il>
Signed-off-by: Roland Dreier <rolandd@cisco.com>
drivers/infiniband/core/uverbs_cmd.c