summaryrefslogtreecommitdiffstats
path: root/drivers/net/sunvnet.c
diff options
context:
space:
mode:
authorHerbert Xu <herbert@gondor.apana.org.au>2007-12-19 07:14:25 +0100
committerDavid S. Miller <davem@davemloft.net>2008-01-28 23:59:13 +0100
commit910ef70aa301eb018255683499b8e51426c213a0 (patch)
treeccde31a2c581c1f9ddea0c482f22ce72a9293f0e /drivers/net/sunvnet.c
parent[NETFILTER]: Add CONFIG_NETFILTER_ADVANCED option (diff)
downloadlinux-910ef70aa301eb018255683499b8e51426c213a0.tar.xz
linux-910ef70aa301eb018255683499b8e51426c213a0.zip
[IPSEC]: Do xfrm_state_check_space before encapsulation
While merging the IPsec output path I moved the encapsulation output operation to the top of the loop so that it sits outside of the locked section. Unfortunately in doing so it now sits in front of the space check as well which could be a fatal error. This patch rearranges the calls so that the space check happens as the thing on the output path. This patch also fixes an incorrect goto should the encapsulation output fail. Thanks to Kazunori MIYAZAWA for finding this bug. Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'drivers/net/sunvnet.c')
0 files changed, 0 insertions, 0 deletions