From: Miroslaw Walukiewicz Date: Tue, 21 Apr 2009 23:16:48 +0000 (-0700) Subject: RDMA/nes: Fix resource issues in nes_create_cq() and nes_destroy_cq() X-Git-Tag: v2.6.30-rc4~5^2^5~12 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=5d1af5c83232c5a02b9dc0fe43053b4ddc005224;p=pandora-kernel.git RDMA/nes: Fix resource issues in nes_create_cq() and nes_destroy_cq() In error paths where a CQ is not created, pbl is not freeed properly. In nes_destroy_cq(), add the corresponding check for nescq->mcrqf to not call nes_free_resource() when it is already done in nes_create_cq(). Signed-off-by: Miroslaw Walukiewicz Signed-off-by: Chien Tung Signed-off-by: Roland Dreier --- Reading git-diff-tree failed