Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
xfrm: properly handle invalid states as an error
The error exit path needs err explicitly set. Otherwise it returns success and the only caller, xfrm_output_resume(), would oops in skb_dst(skb)->ops derefence as skb_dst(skb) is NULL. Bug introduced in commit bb65a9c (xfrm: removes a superfluous check and add a statistic). Signed-off-by: Timo Teräs <[email protected]> Cc: Li RongQing <[email protected]> Cc: Steffen Klassert <[email protected]> Signed-off-by: David S. Miller <[email protected]>
- Loading branch information