Browse Source

ieee1394: eth1394: correct a memset argument

The old argument calculated the correct value in a wrong way.

Signed-off-by: Stefan Richter <stefanr@s5r6.in-berlin.de>
Stefan Richter 18 years ago
parent
commit
027611b842
1 changed files with 1 additions and 1 deletions
  1. 1 1
      drivers/ieee1394/eth1394.c

+ 1 - 1
drivers/ieee1394/eth1394.c

@@ -472,7 +472,7 @@ static void ether1394_reset_priv(struct net_device *dev, int set_mtu)
 
 
 	spin_lock_irqsave(&priv->lock, flags);
 	spin_lock_irqsave(&priv->lock, flags);
 
 
-	memset(priv->ud_list, 0, sizeof(struct node_entry*) * ALL_NODES);
+	memset(priv->ud_list, 0, sizeof(priv->ud_list));
 	priv->bc_maxpayload = 512;
 	priv->bc_maxpayload = 512;
 
 
 	/* Determine speed limit */
 	/* Determine speed limit */