Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 57435
b: refs/heads/master
c: c764c9a
h: refs/heads/master
i:
  57433: c06a110
  57431: 86ea249
v: v3
  • Loading branch information
Akinobu Mita authored and David S. Miller committed Jun 7, 2007
1 parent 3863579 commit 6e3d5d7
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 7 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: 4c1b52bc7a2f5ee01ea3fc248a8748a1c6843f7c
refs/heads/master: c764c9ade6d9b710bad2b9c631ede9864333b98c
12 changes: 6 additions & 6 deletions trunk/net/netfilter/nf_conntrack_amanda.c
Original file line number Diff line number Diff line change
Expand Up @@ -208,13 +208,14 @@ static int __init nf_conntrack_amanda_init(void)
{
int ret, i;

ret = -ENOMEM;
for (i = 0; i < ARRAY_SIZE(search); i++) {
search[i].ts = textsearch_prepare(ts_algo, search[i].string,
search[i].len,
GFP_KERNEL, TS_AUTOLOAD);
if (search[i].ts == NULL)
if (IS_ERR(search[i].ts)) {
ret = PTR_ERR(search[i].ts);
goto err1;
}
}
ret = nf_conntrack_helper_register(&amanda_helper[0]);
if (ret < 0)
Expand All @@ -227,10 +228,9 @@ static int __init nf_conntrack_amanda_init(void)
err2:
nf_conntrack_helper_unregister(&amanda_helper[0]);
err1:
for (; i >= 0; i--) {
if (search[i].ts)
textsearch_destroy(search[i].ts);
}
while (--i >= 0)
textsearch_destroy(search[i].ts);

return ret;
}

Expand Down

0 comments on commit 6e3d5d7

Please sign in to comment.