summaryrefslogtreecommitdiffstats
path: root/net/tipc
diff options
context:
space:
mode:
authorAllan Stephens <allan.stephens@windriver.com>2006-06-25 23:38:29 -0700
committerDavid S. Miller <davem@davemloft.net>2006-06-25 23:38:29 -0700
commit49384507896ee26e67266cebef6b6a9f2e31081c (patch)
tree0a1dd7ef172455c7a433755277c331e3690c10bf /net/tipc
parent2535ec50b7a51833ff65dc97ca85e1155d4090f8 (diff)
downloadop-kernel-dev-49384507896ee26e67266cebef6b6a9f2e31081c.zip
op-kernel-dev-49384507896ee26e67266cebef6b6a9f2e31081c.tar.gz
[TIPC]: Corrected potential misuse of tipc_media_addr structure.
Signed-off-by: Allan Stephens <allan.stephens@windriver.com> Signed-off-by: Per Liden <per.liden@ericsson.com> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'net/tipc')
-rw-r--r--net/tipc/eth_media.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/net/tipc/eth_media.c b/net/tipc/eth_media.c
index b646619..3ecb100 100644
--- a/net/tipc/eth_media.c
+++ b/net/tipc/eth_media.c
@@ -254,7 +254,9 @@ int tipc_eth_media_start(void)
if (eth_started)
return -EINVAL;
- memset(&bcast_addr, 0xff, sizeof(bcast_addr));
+ bcast_addr.type = htonl(TIPC_MEDIA_TYPE_ETH);
+ memset(&bcast_addr.dev_addr, 0xff, ETH_ALEN);
+
memset(eth_bearers, 0, sizeof(eth_bearers));
res = tipc_register_media(TIPC_MEDIA_TYPE_ETH, "eth",
OpenPOWER on IntegriCloud