diff options
author | Allan Stephens <allan.stephens@windriver.com> | 2006-06-26 08:50:01 +0200 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2006-06-26 08:50:01 +0200 |
commit | a75bf874278d8318ffe11043f3acb9b281fa911a (patch) | |
tree | b3ba22c9d4d3a3f8d2744e8b57a4833d33572f5d /net/tipc/port.c | |
parent | [TIPC]: Withdrawing all names from nameless port now returns success, not error (diff) | |
download | linux-a75bf874278d8318ffe11043f3acb9b281fa911a.tar.xz linux-a75bf874278d8318ffe11043f3acb9b281fa911a.zip |
[TIPC]: Added missing warning for out-of-memory condition
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/tipc/port.c')
-rw-r--r-- | net/tipc/port.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/net/tipc/port.c b/net/tipc/port.c index 899e08eac2ca..99846a18d94e 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); |