]> git.proxmox.com Git - mirror_ubuntu-jammy-kernel.git/commit
xfrm: Cleanup error handling of xfrm_state_clone
authorSteffen Klassert <steffen.klassert@secunet.com>
Wed, 19 Feb 2014 12:33:24 +0000 (13:33 +0100)
committerSteffen Klassert <steffen.klassert@secunet.com>
Fri, 21 Feb 2014 06:53:28 +0000 (07:53 +0100)
commitcc9ab60e57964d463ff31b9621c8d7e786aee042
tree91f84ed6ae8c3b24e043eb8e2c3983daa2cbd3ee
parentd2c5f6582515362328b33b2a331a17e141ef0d40
xfrm: Cleanup error handling of xfrm_state_clone

The error pointer passed to xfrm_state_clone() is unchecked,
so remove it and indicate an error by returning a null pointer.

Signed-off-by: Steffen Klassert <steffen.klassert@secunet.com>
net/xfrm/xfrm_state.c