From: Olaf Kirch Date: Tue, 5 Feb 2008 04:20:44 +0000 (-0800) Subject: IB/mthca: Return proper error codes from mthca_fmr_alloc() X-Git-Tag: v2.6.25-rc1~790^2~1 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=2c78853472a36c7cf51a84a34edc370e21c93ce4;p=pandora-kernel.git IB/mthca: Return proper error codes from mthca_fmr_alloc() If the allocation of the MTT or the mailbox failed, mthca_fmr_alloc() would return 0 (success) no matter what. This leads to crashes a little down the road, when we try to dereference eg mr->mtt, which was really ERR_PTR(-Ewhatever). Signed-off-by: Olaf Kirch Signed-off-by: Roland Dreier --- Reading git-diff-tree failed