Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 135547
b: refs/heads/master
c: 3b334d4
h: refs/heads/master
i:
  135545: 83c83e8
  135543: e4ef605
v: v3
  • Loading branch information
Eric Leblond authored and David S. Miller committed Mar 26, 2009
1 parent de78377 commit f91b5e0
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 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: 704b3ea3b9b4ea0e115208946abd5c8a64080113
refs/heads/master: 3b334d427cb9c866216820bfad0d8318869cc154
10 changes: 5 additions & 5 deletions trunk/net/bridge/netfilter/ebt_ulog.c
Original file line number Diff line number Diff line change
Expand Up @@ -287,13 +287,13 @@ static struct nf_logger ebt_ulog_logger __read_mostly = {

static int __init ebt_ulog_init(void)
{
bool ret = true;
int ret;
int i;

if (nlbufsiz >= 128*1024) {
printk(KERN_NOTICE "ebt_ulog: Netlink buffer has to be <= 128kB,"
" please try a smaller nlbufsiz parameter.\n");
return false;
return -EINVAL;
}

/* initialize ulog_buffers */
Expand All @@ -308,12 +308,12 @@ static int __init ebt_ulog_init(void)
if (!ebtulognl) {
printk(KERN_WARNING KBUILD_MODNAME ": out of memory trying to "
"call netlink_kernel_create\n");
ret = false;
} else if (xt_register_target(&ebt_ulog_tg_reg) != 0) {
ret = -ENOMEM;
} else if ((ret = xt_register_target(&ebt_ulog_tg_reg)) != 0) {
netlink_kernel_release(ebtulognl);
}

if (ret)
if (ret == 0)
nf_log_register(NFPROTO_BRIDGE, &ebt_ulog_logger);

return ret;
Expand Down

0 comments on commit f91b5e0

Please sign in to comment.