Skip to content
Commit 88171cfe authored by Roland Dreier's avatar Roland Dreier
Browse files

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: default avatarRoland Dreier <rolandd@cisco.com>
parent 31726798
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment