Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 203580
b: refs/heads/master
c: 0eff683
h: refs/heads/master
v: v3
  • Loading branch information
Dan Carpenter authored and David S. Miller committed Jul 15, 2010
1 parent dfd09f5 commit da5db33
Show file tree
Hide file tree
Showing 2 changed files with 3 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: f8320f059296eb8cab6e2429c7ec79b43d42cf42
refs/heads/master: 0eff683f737bf684dc9299e2eaca79cceb80a8c1
4 changes: 2 additions & 2 deletions trunk/net/sched/act_simple.c
Original file line number Diff line number Diff line change
Expand Up @@ -73,10 +73,10 @@ static int tcf_simp_release(struct tcf_defact *d, int bind)

static int alloc_defdata(struct tcf_defact *d, char *defdata)
{
d->tcfd_defdata = kstrndup(defdata, SIMP_MAX_DATA, GFP_KERNEL);
d->tcfd_defdata = kzalloc(SIMP_MAX_DATA, GFP_KERNEL);
if (unlikely(!d->tcfd_defdata))
return -ENOMEM;

strlcpy(d->tcfd_defdata, defdata, SIMP_MAX_DATA);
return 0;
}

Expand Down

0 comments on commit da5db33

Please sign in to comment.