]> www.infradead.org Git - users/jedix/linux-maple.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)
committerDhaval Giani <dhaval.giani@oracle.com>
Mon, 16 Jan 2017 19:49:05 +0000 (14:49 -0500)
commitad9404632b811740b2ecb6f04e54b249d74bc11d
treeab9dc3a558a3fcbaeb7fb29b7f85cacb3adba967
parentaf0446f54254b1ecab469a73a66d500d81279e06
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: c09440f7dcb3 ("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>
(cherry picked from commit 5d9649b3a524df9ccd15ac25ad6591089260fdbd)

Orabug: 24614549

Signed-off-by: Ethan Zhao <ethan.zhao@oracle.com>
Signed-off-by: Dhaval Giani <dhaval.giani@oracle.com>
drivers/net/macsec.c