net/sfc: fix double free on encap transfer flow rule path
authorIvan Malov <ivan.malov@oktetlabs.ru>
Mon, 16 Nov 2020 19:23:03 +0000 (22:23 +0300)
committerFerruh Yigit <ferruh.yigit@intel.com>
Fri, 20 Nov 2020 20:10:04 +0000 (21:10 +0100)
commit450b53f3f289f88c61186794490a0d51924b67de
treef8686957fd1febd6eaf41305c89cac117f06915c
parentaba2af9936b671e1b492f9c044b3e7f4b7e7628b
net/sfc: fix double free on encap transfer flow rule path

Don't free the outer match spec by its pointer in the parsing context
if it has already been tracked by an entry in the outer rule registry.

Fixes: dadff137931c ("net/sfc: support encap flow items in transfer rules")

Signed-off-by: Ivan Malov <ivan.malov@oktetlabs.ru>
Acked-by: Andrew Rybchenko <andrew.rybchenko@oktetlabs.ru>
drivers/net/sfc/sfc_mae.c