diff options
author | Allan Stephens <allan.stephens@windriver.com> | 2006-06-26 02:38:29 -0400 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2006-06-26 02:38:29 -0400 |
commit | 49384507896ee26e67266cebef6b6a9f2e31081c (patch) | |
tree | 0a1dd7ef172455c7a433755277c331e3690c10bf /net | |
parent | 2535ec50b7a51833ff65dc97ca85e1155d4090f8 (diff) |
[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')
-rw-r--r-- | net/tipc/eth_media.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/net/tipc/eth_media.c b/net/tipc/eth_media.c index b64661904e0d..3ecb1006a42d 100644 --- a/net/tipc/eth_media.c +++ b/net/tipc/eth_media.c | |||
@@ -254,7 +254,9 @@ int tipc_eth_media_start(void) | |||
254 | if (eth_started) | 254 | if (eth_started) |
255 | return -EINVAL; | 255 | return -EINVAL; |
256 | 256 | ||
257 | memset(&bcast_addr, 0xff, sizeof(bcast_addr)); | 257 | bcast_addr.type = htonl(TIPC_MEDIA_TYPE_ETH); |
258 | memset(&bcast_addr.dev_addr, 0xff, ETH_ALEN); | ||
259 | |||
258 | memset(eth_bearers, 0, sizeof(eth_bearers)); | 260 | memset(eth_bearers, 0, sizeof(eth_bearers)); |
259 | 261 | ||
260 | res = tipc_register_media(TIPC_MEDIA_TYPE_ETH, "eth", | 262 | res = tipc_register_media(TIPC_MEDIA_TYPE_ETH, "eth", |