Re: [PATCH] mlxsw: minimal: Fix an error handling path in 'mlxsw_m_port_create()'
From: David Miller
Date: Mon Jan 27 2020 - 05:14:49 EST
From: Christophe JAILLET <christophe.jaillet@xxxxxxxxxx>
Date: Sat, 25 Jan 2020 22:18:47 +0100
> An 'alloc_etherdev()' called is not ballanced by a corresponding
> 'free_netdev()' call in one error handling path.
>
> Slighly reorder the error handling code to catch the missed case.
>
> Fixes: c100e47caa8e ("mlxsw: minimal: Add ethtool support")
> Signed-off-by: Christophe JAILLET <christophe.jaillet@xxxxxxxxxx>
Applied and queued up for -stable, thanks.