Skip to content

Commit

Permalink
[TIPC]: Added missing warning for out-of-memory condition
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Allan Stephens authored and David S. Miller committed Jun 26, 2006
1 parent a751352 commit a75bf87
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions net/tipc/port.c
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down

0 comments on commit a75bf87

Please sign in to comment.