commit | 5294b83086cc1c35b4efeca03644cf9d12282e5b | [log] [tgz] |
---|---|---|
author | Jason A. Donenfeld <Jason@zx2c4.com> | Tue Apr 25 19:08:18 2017 +0200 |
committer | David S. Miller <davem@davemloft.net> | Wed Apr 26 14:41:53 2017 -0400 |
tree | 52d523a44d35c124513537df45423bea4546d1a2 | |
parent | b43bd72835a5f7adef81fe53fa1fbe7b0e43df8e [diff] |
macsec: dynamically allocate space for sglist We call skb_cow_data, which is good anyway to ensure we can actually modify the skb as such (another error from prior). Now that we have the number of fragments required, we can safely allocate exactly that amount of memory. Fixes: c09440f7dcb3 ("macsec: introduce IEEE 802.1AE driver") Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com> Acked-by: Sabrina Dubroca <sd@queasysnail.net> Signed-off-by: David S. Miller <davem@davemloft.net>