From: Davide Caratti <dcara...@redhat.com> Date: Tue, 4 Sep 2018 19:00:19 +0200
> If users try to install act_tunnel_key 'set' rules with duplicate values > of 'index', the tunnel metadata are allocated, but never released. Then, > kmemleak complains as follows: ... > This problem theoretically happens also in case users attempt to setup a > geneve rule having wrong configuration data, or when the kernel fails to > allocate 'params_new'. Ensure that tunnel_key_init() releases the tunnel > metadata also in the above conditions. > > Addresses-Coverity-ID: 1373974 ("Resource leak") > Fixes: d0f6dd8a914f4 ("net/sched: Introduce act_tunnel_key") > Fixes: 0ed5269f9e41f ("net/sched: add tunnel option support to > act_tunnel_key") > Signed-off-by: Davide Caratti <dcara...@redhat.com> Applied and queued up for -stable.