From: Roland Dreier Date: Thu, 1 Mar 2007 21:17:14 +0000 (-0800) Subject: IB/mthca: Fix error path in mthca_alloc_memfree() X-Git-Tag: v2.6.21-rc4~79^2~12 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=88171cfed5810a2354eb1977883589a05ce8d304;p=pandora-kernel.git IB/mthca: Fix error path in mthca_alloc_memfree() The garbled logic in mthca_alloc_memfree() causes it to return 0, even if it fails to allocate all doorbell records. Fix it to return -ENOMEM when it fails. Signed-off-by: Roland Dreier --- Reading git-diff-tree failed