IB/qib: Correct reference counting in debugfs qp_stats
authorMike Marciniszyn <mike.marciniszyn@intel.com>
Fri, 19 Sep 2014 12:32:19 +0000 (08:32 -0400)
committerRoland Dreier <roland@purestorage.com>
Fri, 19 Sep 2014 17:18:32 +0000 (10:18 -0700)
commit85cbb7c728bf39c45a9789b88c9471c0d7a58b0e
tree943991994effdf8ec4d191e872b5a1d3fbcd755f
parentf5c4984e065556b81edf3c9dadfbc8750de690fc
IB/qib: Correct reference counting in debugfs qp_stats

This particular reference count is not needed with the rcu protection,
and the current code leaks a reference count, causing a hang in
qib_qp_destroy().

Cc: <stable@vger.kernel.org>
Reviewed-by: Dennis Dalessandro <dennis.dalessandro@intel.com>
Signed-off-by: Mike Marciniszyn <mike.marciniszyn@intel.com>
Signed-off-by: Roland Dreier <roland@purestorage.com>
drivers/infiniband/hw/qib/qib_debugfs.c
drivers/infiniband/hw/qib/qib_qp.c