Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 41743
b: refs/heads/master
c: c66b721
h: refs/heads/master
i:
  41741: b23e4aa
  41739: 3c80d91
  41735: 792931c
  41727: 2ceaff9
v: v3
  • Loading branch information
Arnaldo Carvalho de Melo authored and David S. Miller committed Dec 3, 2006
1 parent e2d2a7f commit 4e14bbb
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 4 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: eed73417d501c2c7bdef1bc8a1f7a1548a635b09
refs/heads/master: c66b721a502cbbc15be8bd7c79c305fa40f1e6ce
4 changes: 1 addition & 3 deletions trunk/net/decnet/dn_dev.c
Original file line number Diff line number Diff line change
Expand Up @@ -255,12 +255,10 @@ static void dn_dev_sysctl_register(struct net_device *dev, struct dn_dev_parms *
struct dn_dev_sysctl_table *t;
int i;

t = kmalloc(sizeof(*t), GFP_KERNEL);
t = kmemdup(&dn_dev_sysctl, sizeof(*t), GFP_KERNEL);
if (t == NULL)
return;

memcpy(t, &dn_dev_sysctl, sizeof(*t));

for(i = 0; i < ARRAY_SIZE(t->dn_dev_vars) - 1; i++) {
long offset = (long)t->dn_dev_vars[i].data;
t->dn_dev_vars[i].data = ((char *)parms) + offset;
Expand Down

0 comments on commit 4e14bbb

Please sign in to comment.