From: Roland Dreier Date: Tue, 31 Mar 2009 16:54:15 +0000 (-0700) Subject: mlx4_core: Don't leak mailbox for SET_PORT on Ethernet ports X-Git-Tag: v2.6.30-rc2~92^2^4 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=352b09edd7fa8145bfc9e5db0cc0fed971b69440;p=pandora-kernel.git 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: Roland Dreier --- Reading git-diff-tree failed