]> git.baikalelectronics.ru Git - kernel.git/commit
macsec: allocate sg and iv on the heap
authorSabrina Dubroca <sd@queasysnail.net>
Tue, 14 Jun 2016 13:25:15 +0000 (15:25 +0200)
committerDavid S. Miller <davem@davemloft.net>
Wed, 15 Jun 2016 21:47:46 +0000 (14:47 -0700)
commit4fdb585c4c09e70fa359006e0286e7418154dc1e
tree54cb7b03dfb4039ab3b7c988f6ad63f375c060c7
parent24133da0780e56269eb38c040c7b7f2fe878d18c
macsec: allocate sg and iv on the heap

For the crypto callbacks to work properly, we cannot have sg and iv on
the stack.  Use kmalloc instead, with a single allocation for
aead_request + scatterlist + iv.

Fixes: 4453af01ee3c ("macsec: introduce IEEE 802.1AE driver")
Signed-off-by: Sabrina Dubroca <sd@queasysnail.net>
Acked-by: Hannes Frederic Sowa <hannes@stressinduktion.org>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/macsec.c