]> git.baikalelectronics.ru Git - kernel.git/commit
xfrm: fix a small bug in xfrm_sa_len()
authorEric Dumazet <edumazet@google.com>
Wed, 8 Dec 2021 20:20:19 +0000 (12:20 -0800)
committerSteffen Klassert <steffen.klassert@secunet.com>
Thu, 9 Dec 2021 09:23:05 +0000 (10:23 +0100)
commit8923f2247e821e5e87006cc33632215a7d482e8e
treea77e10a22cdd8fef5555a037314c368dfd0dc541
parent693b93c61bd98701adbbe13f118d1900cf5b7ecc
xfrm: fix a small bug in xfrm_sa_len()

copy_user_offload() will actually push a struct struct xfrm_user_offload,
which is different than (struct xfrm_state *)->xso
(struct xfrm_state_offload)

Fixes: a0adf2600184a ("xfrm: Add an IPsec hardware offloading API")
Signed-off-by: Eric Dumazet <edumazet@google.com>
Cc: Steffen Klassert <steffen.klassert@secunet.com>
Signed-off-by: Steffen Klassert <steffen.klassert@secunet.com>
net/xfrm/xfrm_user.c