]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
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)
committerJiri Slaby <jslaby@suse.cz>
Mon, 13 Oct 2014 13:41:34 +0000 (15:41 +0200)
commit8d9376b83508b95e38746932944ab42133053103
tree0739a120a2b6cedf465cb52d32c00b5107583385
parent6b492bab9c4edd84769ff057200b95c709e4b891
IB/qib: Correct reference counting in debugfs qp_stats

commit 85cbb7c728bf39c45a9789b88c9471c0d7a58b0e upstream.

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().

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>
Signed-off-by: Jiri Slaby <jslaby@suse.cz>
drivers/infiniband/hw/qib/qib_debugfs.c
drivers/infiniband/hw/qib/qib_qp.c