mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git/
synced 2026-11-08 18:57:22 +00:00
xfrm: set err and extack on failure to create pcpu SA
[ Upstream commit1dcf617bec] xfrm_state_construct can fail without setting an error if the requested pcpu_num value is too big. Set err and add an extack message to avoid confusing userspace. Fixes:1ddf9916ac("xfrm: Add support for per cpu xfrm state handling.") Signed-off-by: Sabrina Dubroca <sd@queasysnail.net> Signed-off-by: Steffen Klassert <steffen.klassert@secunet.com> Signed-off-by: Sasha Levin <sashal@kernel.org>
This commit is contained in:
parent
ba670eba99
commit
e7b4e6e189
1 changed files with 4 additions and 1 deletions
Loading…
Add table
Add a link
Reference in a new issue