Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 5085
b: refs/heads/master
c: a4f1bac
h: refs/heads/master
i:
  5083: f25ce11
v: v3
  • Loading branch information
Herbert Xu authored and David S. Miller committed Jul 26, 2005
1 parent 396e4c4 commit 8701d2c
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: cadf01c2fc0cd66dfef4956ef1a6482ed01c3150
refs/heads/master: a4f1bac62564049ea4718c4624b0fadc9f597c84
3 changes: 3 additions & 0 deletions trunk/net/xfrm/xfrm_user.c
Original file line number Diff line number Diff line change
Expand Up @@ -1350,6 +1350,9 @@ static struct xfrm_policy *xfrm_compile_policy(u16 family, int opt,
if (nr > XFRM_MAX_DEPTH)
return NULL;

if (p->dir > XFRM_POLICY_OUT)
return NULL;

xp = xfrm_policy_alloc(GFP_KERNEL);
if (xp == NULL) {
*dir = -ENOBUFS;
Expand Down

0 comments on commit 8701d2c

Please sign in to comment.