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)
committerDavid S. Miller <davem@davemloft.net>
Wed, 11 Oct 2017 21:07:20 +0000 (14:07 -0700)
commit5aba2ba5030b66a6f8c93049b718556f9aacd7c6
tree1806c841ef764418525222567e31d5ca5ac62029
parentc0576e3975084d4699b7bfef578613fb8e1144f6
macsec: fix memory leaks when skb_to_sgvec fails

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>
drivers/net/macsec.c