aboutsummaryrefslogtreecommitdiffstats
path: root/net/tipc
diff options
context:
space:
mode:
Diffstat (limited to 'net/tipc')
-rw-r--r--net/tipc/bearer.c10
-rw-r--r--net/tipc/bearer.h2
2 files changed, 6 insertions, 6 deletions
diff --git a/net/tipc/bearer.c b/net/tipc/bearer.c
index eab4201d4312..329fb659fae4 100644
--- a/net/tipc/bearer.c
+++ b/net/tipc/bearer.c
@@ -185,7 +185,7 @@ struct sk_buff *tipc_media_get_names(void)
185 */ 185 */
186 186
187static int bearer_name_validate(const char *name, 187static int bearer_name_validate(const char *name,
188 struct bearer_name *name_parts) 188 struct tipc_bearer_names *name_parts)
189{ 189{
190 char name_copy[TIPC_MAX_BEARER_NAME]; 190 char name_copy[TIPC_MAX_BEARER_NAME];
191 char *media_name; 191 char *media_name;
@@ -428,7 +428,7 @@ int tipc_enable_bearer(const char *name, u32 disc_domain, u32 priority)
428{ 428{
429 struct tipc_bearer *b_ptr; 429 struct tipc_bearer *b_ptr;
430 struct tipc_media *m_ptr; 430 struct tipc_media *m_ptr;
431 struct bearer_name b_name; 431 struct tipc_bearer_names b_names;
432 char addr_string[16]; 432 char addr_string[16];
433 u32 bearer_id; 433 u32 bearer_id;
434 u32 with_this_prio; 434 u32 with_this_prio;
@@ -440,7 +440,7 @@ int tipc_enable_bearer(const char *name, u32 disc_domain, u32 priority)
440 name); 440 name);
441 return -ENOPROTOOPT; 441 return -ENOPROTOOPT;
442 } 442 }
443 if (!bearer_name_validate(name, &b_name)) { 443 if (!bearer_name_validate(name, &b_names)) {
444 warn("Bearer <%s> rejected, illegal name\n", name); 444 warn("Bearer <%s> rejected, illegal name\n", name);
445 return -EINVAL; 445 return -EINVAL;
446 } 446 }
@@ -465,10 +465,10 @@ int tipc_enable_bearer(const char *name, u32 disc_domain, u32 priority)
465 465
466 write_lock_bh(&tipc_net_lock); 466 write_lock_bh(&tipc_net_lock);
467 467
468 m_ptr = tipc_media_find(b_name.media_name); 468 m_ptr = tipc_media_find(b_names.media_name);
469 if (!m_ptr) { 469 if (!m_ptr) {
470 warn("Bearer <%s> rejected, media <%s> not registered\n", name, 470 warn("Bearer <%s> rejected, media <%s> not registered\n", name,
471 b_name.media_name); 471 b_names.media_name);
472 goto exit; 472 goto exit;
473 } 473 }
474 474
diff --git a/net/tipc/bearer.h b/net/tipc/bearer.h
index 348065480f2e..d3eac56b8c21 100644
--- a/net/tipc/bearer.h
+++ b/net/tipc/bearer.h
@@ -152,7 +152,7 @@ struct tipc_bearer {
152 struct tipc_node_map nodes; 152 struct tipc_node_map nodes;
153}; 153};
154 154
155struct bearer_name { 155struct tipc_bearer_names {
156 char media_name[TIPC_MAX_MEDIA_NAME]; 156 char media_name[TIPC_MAX_MEDIA_NAME];
157 char if_name[TIPC_MAX_IF_NAME]; 157 char if_name[TIPC_MAX_IF_NAME];
158}; 158};