Re: [PATCH] net: hns3: Fix an error handling path in 'hclge_rss_init_hw()'

From: David Miller
Date: Mon Oct 02 2017 - 01:57:48 EST


From: Christophe JAILLET <christophe.jaillet@xxxxxxxxxx>
Date: Sat, 30 Sep 2017 07:34:34 +0200

> If this sanity check fails, we must free 'rss_indir'. Otherwise there is a
> memory leak.
> 'goto err' as done in the other error handling paths to fix it.
>
> Fixes: 46a3df9f9718 ("net: hns3: Fix for setting rss_size incorrectly")
> Signed-off-by: Christophe JAILLET <christophe.jaillet@xxxxxxxxxx>

Applied.