netdev.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [VLAN]: Fix memset length
@ 2007-07-12 18:16 Patrick McHardy
  2007-07-15  1:56 ` David Miller
  0 siblings, 1 reply; 2+ messages in thread
From: Patrick McHardy @ 2007-07-12 18:16 UTC (permalink / raw)
  To: David S. Miller; +Cc: Linux Netdev List, Ben Greear

[-- Attachment #1: Type: text/plain, Size: 100 bytes --]

Fix a bug in the patches I sent yesterday. Should apply cleanly with
or without the macvlan stuff.


[-- Attachment #2: x --]
[-- Type: text/plain, Size: 970 bytes --]

[VLAN]: Fix memset length

Fix sizeof(ETH_ALEN) Introduced by my rtnl_link patches.

Signed-off-by: Patrick McHardy <kaber@trash.net>

---
commit 38080b6eda6e5a93a4bd11a5f4a4941d9558d816
tree 4d911975d4b420c372050056f949b3c36595596d
parent 553029f4dd24c41322c3e6cb31458e7e094d21ee
author Patrick McHardy <kaber@trash.net> Thu, 12 Jul 2007 20:15:00 +0200
committer Patrick McHardy <kaber@trash.net> Thu, 12 Jul 2007 20:15:00 +0200

 net/8021q/vlan.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/net/8021q/vlan.c b/net/8021q/vlan.c
index 39bdcc2..cda936b 100644
--- a/net/8021q/vlan.c
+++ b/net/8021q/vlan.c
@@ -377,7 +377,7 @@ void vlan_setup(struct net_device *new_dev)
 	new_dev->destructor = free_netdev;
 	new_dev->do_ioctl = vlan_dev_ioctl;
 
-	memset(new_dev->broadcast, 0, sizeof(ETH_ALEN));
+	memset(new_dev->broadcast, 0, ETH_ALEN);
 }
 
 static void vlan_transfer_operstate(const struct net_device *dev, struct net_device *vlandev)

^ permalink raw reply related	[flat|nested] 2+ messages in thread

* Re: [VLAN]: Fix memset length
  2007-07-12 18:16 [VLAN]: Fix memset length Patrick McHardy
@ 2007-07-15  1:56 ` David Miller
  0 siblings, 0 replies; 2+ messages in thread
From: David Miller @ 2007-07-15  1:56 UTC (permalink / raw)
  To: kaber; +Cc: netdev, greearb

From: Patrick McHardy <kaber@trash.net>
Date: Thu, 12 Jul 2007 20:16:39 +0200

> [VLAN]: Fix memset length
> 
> Fix sizeof(ETH_ALEN) Introduced by my rtnl_link patches.
> 
> Signed-off-by: Patrick McHardy <kaber@trash.net>

Applied, thanks.

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2007-07-15  1:56 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2007-07-12 18:16 [VLAN]: Fix memset length Patrick McHardy
2007-07-15  1:56 ` David Miller

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).