aboutsummaryrefslogtreecommitdiffstats
path: root/net/tipc/port.c
diff options
context:
space:
mode:
Diffstat (limited to 'net/tipc/port.c')
-rw-r--r--net/tipc/port.c10
1 files changed, 5 insertions, 5 deletions
diff --git a/net/tipc/port.c b/net/tipc/port.c
index 3aab67a56649..47d97404e3ee 100644
--- a/net/tipc/port.c
+++ b/net/tipc/port.c
@@ -195,7 +195,7 @@ void tipc_port_recv_mcast(struct sk_buff *buf, struct port_list *dp)
195 struct sk_buff *b = skb_clone(buf, GFP_ATOMIC); 195 struct sk_buff *b = skb_clone(buf, GFP_ATOMIC);
196 196
197 if (b == NULL) { 197 if (b == NULL) {
198 warn("Buffer allocation failure\n"); 198 warn("Unable to deliver multicast message(s)\n");
199 msg_dbg(msg, "LOST:"); 199 msg_dbg(msg, "LOST:");
200 goto exit; 200 goto exit;
201 } 201 }
@@ -227,14 +227,14 @@ u32 tipc_createport_raw(void *usr_handle,
227 u32 ref; 227 u32 ref;
228 228
229 p_ptr = kmalloc(sizeof(*p_ptr), GFP_ATOMIC); 229 p_ptr = kmalloc(sizeof(*p_ptr), GFP_ATOMIC);
230 if (p_ptr == NULL) { 230 if (!p_ptr) {
231 warn("Memory squeeze; failed to create port\n"); 231 warn("Port creation failed, no memory\n");
232 return 0; 232 return 0;
233 } 233 }
234 memset(p_ptr, 0, sizeof(*p_ptr)); 234 memset(p_ptr, 0, sizeof(*p_ptr));
235 ref = tipc_ref_acquire(p_ptr, &p_ptr->publ.lock); 235 ref = tipc_ref_acquire(p_ptr, &p_ptr->publ.lock);
236 if (!ref) { 236 if (!ref) {
237 warn("Reference Table Exhausted\n"); 237 warn("Port creation failed, reference table exhausted\n");
238 kfree(p_ptr); 238 kfree(p_ptr);
239 return 0; 239 return 0;
240 } 240 }
@@ -1059,7 +1059,7 @@ int tipc_createport(u32 user_ref,
1059 u32 ref; 1059 u32 ref;
1060 1060
1061 up_ptr = (struct user_port *)kmalloc(sizeof(*up_ptr), GFP_ATOMIC); 1061 up_ptr = (struct user_port *)kmalloc(sizeof(*up_ptr), GFP_ATOMIC);
1062 if (up_ptr == NULL) { 1062 if (!up_ptr) {
1063 warn("Port creation failed, no memory\n"); 1063 warn("Port creation failed, no memory\n");
1064 return -ENOMEM; 1064 return -ENOMEM;
1065 } 1065 }