Skip to content
Commit 352b09ed authored by Roland Dreier's avatar Roland Dreier
Browse files

mlx4_core: Don't leak mailbox for SET_PORT on Ethernet ports

Commit 793730bf

 ("mlx4_core: Don't perform SET_PORT command for
Ethernet ports") introduced a leak of mailbox buffers when SET_PORT
was called for Ethernet ports, since it added a return after the
mailbox was allocated.  Fix this by checking the port type and
returning *before* allocating the mailbox.

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