Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 22316
b: refs/heads/master
c: cee4854
h: refs/heads/master
v: v3
  • Loading branch information
Stephen Hemminger authored and David S. Miller committed Mar 21, 2006
1 parent c38645f commit b488f59
Show file tree
Hide file tree
Showing 2 changed files with 4 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: 3b781fa10bcdb148924d1847f68899583e0d66ef
refs/heads/master: cee4854122d4347b2f6f10fe7f007a48fada29a0
6 changes: 3 additions & 3 deletions trunk/net/bridge/br_if.c
Original file line number Diff line number Diff line change
Expand Up @@ -210,7 +210,8 @@ static struct net_device *new_bridge_dev(const char *name)

br->bridge_id.prio[0] = 0x80;
br->bridge_id.prio[1] = 0x00;
memset(br->bridge_id.addr, 0, ETH_ALEN);

memcpy(br->group_addr, br_group_address, ETH_ALEN);

br->feature_mask = dev->features;
br->stp_enabled = 0;
Expand Down Expand Up @@ -263,11 +264,10 @@ static struct net_bridge_port *new_nbp(struct net_bridge *br,
if (index < 0)
return ERR_PTR(index);

p = kmalloc(sizeof(*p), GFP_KERNEL);
p = kzalloc(sizeof(*p), GFP_KERNEL);
if (p == NULL)
return ERR_PTR(-ENOMEM);

memset(p, 0, sizeof(*p));
p->br = br;
dev_hold(dev);
p->dev = dev;
Expand Down

0 comments on commit b488f59

Please sign in to comment.