diff options
author | Jason A. Donenfeld <Jason@zx2c4.com> | 2017-04-25 17:08:18 (GMT) |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2017-05-14 12:00:20 (GMT) |
commit | 3b0129d4111e53927c2bc3c6b78a2b12ad71268b (patch) | |
tree | 94bc9edad6345508238e53b55caa55ac9f295ab7 /drivers/net/usb/sr9700.h | |
parent | 22d6b013ffcf4809b4fe03b240855c6f8eb54599 (diff) | |
download | linux-3b0129d4111e53927c2bc3c6b78a2b12ad71268b.tar.xz |
macsec: dynamically allocate space for sglist
[ Upstream commit 5294b83086cc1c35b4efeca03644cf9d12282e5b ]
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>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'drivers/net/usb/sr9700.h')
0 files changed, 0 insertions, 0 deletions