Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

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
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment