From: Mike Marciniszyn Date: Tue, 11 Jan 2011 01:42:23 +0000 (-0800) Subject: IB/qib: Fix refcount leak in lkey/rkey validation X-Git-Tag: v2.6.38-rc1~406^2^7 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=4db62d4786e946e6fc8c2bb1f9201508f7f46c41;p=pandora-kernel.git IB/qib: Fix refcount leak in lkey/rkey validation The mr optimization introduced a reference count leak on an exception test. The lock/refcount manipulation is moved down and the problematic exception test now calls bail to insure that the lock is released. Additional fixes as suggested by Ralph Campbell : - reduce lock scope of dma regions - use explicit values on returns vs. automatic ret value Signed-off-by: Mike Marciniszyn Signed-off-by: Roland Dreier --- Reading git-diff-tree failed