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

2017-10-01 Thread David Miller
From: Christophe JAILLET 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")

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

2017-09-29 Thread Yunsheng Lin
Hi, Christophe On 2017/9/30 13:34, Christophe JAILLET wrote: > 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. Thanks for fixing. > > Fixes: 46a3df9f9718 ("net: hns3: Fix for setting rss_

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

2017-09-29 Thread Christophe JAILLET
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 --- drivers/net/ethernet/hisilicon/hns