From: Allan Stephens Date: Mon, 26 Jun 2006 06:50:01 +0000 (-0700) Subject: [TIPC]: Added missing warning for out-of-memory condition X-Git-Tag: v2.6.18-rc1~614^2~17 X-Git-Url: https://err.no/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=a75bf874278d8318ffe11043f3acb9b281fa911a;p=linux-2.6 [TIPC]: Added missing warning for out-of-memory condition Signed-off-by: Allan Stephens Signed-off-by: Per Liden Signed-off-by: David S. Miller --- diff --git a/net/tipc/port.c b/net/tipc/port.c index 899e08eac2..99846a18d9 100644 --- a/net/tipc/port.c +++ b/net/tipc/port.c @@ -1061,6 +1061,7 @@ int tipc_createport(u32 user_ref, up_ptr = (struct user_port *)kmalloc(sizeof(*up_ptr), GFP_ATOMIC); if (up_ptr == NULL) { + warn("Port creation failed, no memory\n"); return -ENOMEM; } ref = tipc_createport_raw(NULL, port_dispatcher, port_wakeup, importance);