macsec: fix memory leaks when skb_to_sgvec fails
authorSabrina Dubroca <sd@queasysnail.net>
Tue, 10 Oct 2017 15:07:12 +0000 (17:07 +0200)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Sat, 10 Nov 2018 15:42:54 +0000 (07:42 -0800)
commit5f6590d6fa992e6218d8b0c6329374fb36503242
tree2c11ac82005fc7266bf018263347b0042af228c9
parent65b05d03a57830691900451b902d37c383a9224b
macsec: fix memory leaks when skb_to_sgvec fails

[ Upstream commit 5aba2ba5030b66a6f8c93049b718556f9aacd7c6 ]

Fixes: cda7ea690350 ("macsec: check return value of skb_to_sgvec always")
Signed-off-by: Sabrina Dubroca <sd@queasysnail.net>
Signed-off-by: David S. Miller <davem@davemloft.net>
Signed-off-by: Sasha Levin <sashal@kernel.org>
drivers/net/macsec.c