From: Roland Dreier Date: Tue, 19 Feb 2008 18:42:50 +0000 (-0800) Subject: IB/mthca: Free correct MPT on error exit from mthca_fmr_alloc() X-Git-Tag: v2.6.25-rc3~117^2 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=b7f9c112a5e7f68d77a31c79f5942a3272ae9a3b;p=pandora-kernel.git IB/mthca: Free correct MPT on error exit from mthca_fmr_alloc() When mthca_fmr_alloc() returns an error, it should free the MPT at the index key, not mr->ibmr.lkey, since the lkey has been mangled by hw_index_to_key() and no longer is the real index. This bug causes corruption of the MPT table free bitmap when mthca_fmr_alloc() fails. Signed-off-by: Roland Dreier --- Reading git-diff-tree failed