Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 252275
b: refs/heads/master
c: 97242c8
h: refs/heads/master
i:
  252273: 9cc25a5
  252271: f4fa1bc
v: v3
  • Loading branch information
David Miller authored and Pablo Neira Ayuso committed May 26, 2011
1 parent 6ec7c20 commit b386dc5
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 3 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 9184a9cba622d9e38462ce11dff7da094b4fea84
refs/heads/master: 97242c85a2c8160eac5a6e945209b5b6ae8ab5a3
6 changes: 4 additions & 2 deletions trunk/net/bridge/netfilter/ebtables.c
Original file line number Diff line number Diff line change
Expand Up @@ -1883,14 +1883,13 @@ static int compat_mtw_from_user(struct compat_ebt_entry_mwt *mwt,
struct xt_target *wt;
void *dst = NULL;
int off, pad = 0;
unsigned int size_kern, entry_offset, match_size = mwt->match_size;
unsigned int size_kern, match_size = mwt->match_size;

strlcpy(name, mwt->u.name, sizeof(name));

if (state->buf_kern_start)
dst = state->buf_kern_start + state->buf_kern_offset;

entry_offset = (unsigned char *) mwt - base;
switch (compat_mwt) {
case EBT_COMPAT_MATCH:
match = try_then_request_module(xt_find_match(NFPROTO_BRIDGE,
Expand Down Expand Up @@ -1933,6 +1932,9 @@ static int compat_mtw_from_user(struct compat_ebt_entry_mwt *mwt,
size_kern = wt->targetsize;
module_put(wt->me);
break;

default:
return -EINVAL;
}

state->buf_kern_offset += match_size + off;
Expand Down

0 comments on commit b386dc5

Please sign in to comment.