commit | 81359617f1b783a01e6e22b46cbb046e9513b9c6 | [log] [tgz] |
---|---|---|
author | Christophe JAILLET <christophe.jaillet@wanadoo.fr> | Sat Sep 30 07:34:34 2017 +0200 |
committer | David S. Miller <davem@davemloft.net> | Sun Oct 01 22:57:24 2017 -0700 |
tree | a362ce35fcdd1d33e5d12ac99b920a04fc1f1483 | |
parent | 4792ea04bcd03b8ccfd1ae336c5deba52dd9edc9 [diff] |
net: hns3: Fix an error handling path in 'hclge_rss_init_hw()' 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@wanadoo.fr> Signed-off-by: David S. Miller <davem@davemloft.net>