diff -r 6c81f3879f3d net/bridge/netfilter/ebtables.c --- a/net/bridge/netfilter/ebtables.c Wed Oct 31 09:42:20 2007 +0000 +++ b/net/bridge/netfilter/ebtables.c Mon Feb 04 14:41:09 2008 +0100 @@ -597,7 +597,7 @@ ebt_check_entry(struct ebt_entry *e, str struct ebt_entry_target *t; struct ebt_target *target; unsigned int i, j, hook = 0, hookmask = 0; - size_t gap = e->next_offset - e->target_offset; + size_t gap; int ret; /* don't mess with the struct ebt_entries */ @@ -647,6 +647,7 @@ ebt_check_entry(struct ebt_entry *e, str if (ret != 0) goto cleanup_watchers; t = (struct ebt_entry_target *)(((char *)e) + e->target_offset); + gap = e->next_offset - e->target_offset; target = find_target_lock(t->u.name, &ret, &ebt_mutex); if (!target) goto cleanup_watchers;