diff options
author | Timo Teräs <timo.teras@iki.fi> | 2013-05-22 03:40:47 +0200 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2013-05-23 10:20:07 +0200 |
commit | 497574c72c9922cf20c12aed15313c389f722fa0 (patch) | |
tree | 1ded621483211872633af219157427bc0cf26e43 /include/net/addrconf.h | |
parent | virtio_net: enable napi for all possible queues during open (diff) | |
download | linux-497574c72c9922cf20c12aed15313c389f722fa0.tar.xz linux-497574c72c9922cf20c12aed15313c389f722fa0.zip |
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 bb65a9cb (xfrm: removes a superfluous
check and add a statistic).
Signed-off-by: Timo Teräs <timo.teras@iki.fi>
Cc: Li RongQing <roy.qing.li@gmail.com>
Cc: Steffen Klassert <steffen.klassert@secunet.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'include/net/addrconf.h')
0 files changed, 0 insertions, 0 deletions