Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 327860
b: refs/heads/master
c: f05ba7f
h: refs/heads/master
v: v3
  • Loading branch information
Srivatsa S. Bhat authored and David S. Miller committed Sep 13, 2012
1 parent 915e4f4 commit 0922284
Show file tree
Hide file tree
Showing 2 changed files with 5 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: d530d6df96ee28902486f8e11815ef9ad3a1cd1b
refs/heads/master: f05ba7fccf0c5f0422378adaffcb119d08b9f304
9 changes: 4 additions & 5 deletions trunk/net/core/netprio_cgroup.c
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,6 @@ static int extend_netdev_table(struct net_device *dev, u32 new_len)
((sizeof(u32) * new_len));
struct netprio_map *new_priomap = kzalloc(new_size, GFP_KERNEL);
struct netprio_map *old_priomap;
int i;

old_priomap = rtnl_dereference(dev->priomap);

Expand All @@ -82,10 +81,10 @@ static int extend_netdev_table(struct net_device *dev, u32 new_len)
return -ENOMEM;
}

for (i = 0;
old_priomap && (i < old_priomap->priomap_len);
i++)
new_priomap->priomap[i] = old_priomap->priomap[i];
if (old_priomap)
memcpy(new_priomap->priomap, old_priomap->priomap,
old_priomap->priomap_len *
sizeof(old_priomap->priomap[0]));

new_priomap->priomap_len = new_len;

Expand Down

0 comments on commit 0922284

Please sign in to comment.