Skip to content
Commit 71c45122 authored by Roland Dreier's avatar Roland Dreier
Browse files

IB/ipath: Fix memory leak in init_shadow_tids() error path



If the second vmalloc() fails, the wrong pointer is pased to vfree(), so
the first vmalloc() ends up getting leaked.

This was spotted by the Coverity checker (CID 2709).

Signed-off-by: default avatarRoland Dreier <rolandd@cisco.com>
parent f3b8436a
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