mirror of
https://github.com/Fishwaldo/Star64_linux.git
synced 2025-07-05 22:12:16 +00:00
[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>
This commit is contained in:
parent
2535ec50b7
commit
4938450789
2 changed files with 13 additions and 3 deletions
|
@ -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",
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue