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, 18 Nov 2017 10:30:36 +0000 (11:30 +0100)
commitc00d860b1ec13caedd75b13a8fa6dbc4a0727402
treee2c0026483c63f6401cb3bb2b206d831220c8474
parenta74512a1739dfaee2397356451adf53b40798a94
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: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/net/macsec.c