IB/uverbs: Fix reference counting on error paths
authorJack Morgenstein <jackm@mellanox.co.il>
Sat, 7 Jan 2006 00:21:19 +0000 (16:21 -0800)
committerRoland Dreier <rolandd@cisco.com>
Sat, 7 Jan 2006 00:21:19 +0000 (16:21 -0800)
commitb4ca1a3f8ca24033d7b7ef595faef97d9f8b2326
tree1a45fee6feb7fe3a86a9fc4fbd09fdf32a8f7ae6
parent4de144bf721e46e7ccc8fed45b20a640cc364904
IB/uverbs: Fix reference counting on error paths

If an operation fails after incrementing an object's reference count,
then it should decrement the reference count on the error path.

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