]> err.no Git - linux-2.6/commit
IB/mthca: Fix error path in mthca_alloc_memfree()
authorRoland Dreier <rolandd@cisco.com>
Thu, 1 Mar 2007 21:17:14 +0000 (13:17 -0800)
committerRoland Dreier <rolandd@cisco.com>
Thu, 1 Mar 2007 21:17:14 +0000 (13:17 -0800)
commit88171cfed5810a2354eb1977883589a05ce8d304
tree3b6240f56d69f323c2e769a0b36340f73276a4f1
parent31726798bd8fbef6244b28cf962f4a4c45793dea
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 <rolandd@cisco.com>
drivers/infiniband/hw/mthca/mthca_qp.c