提交 a75bf874 编写于 作者: A Allan Stephens 提交者: David S. Miller

[TIPC]: Added missing warning for out-of-memory condition

Signed-off-by: NAllan Stephens <allan.stephens@windriver.com>
Signed-off-by: NPer Liden <per.liden@ericsson.com>
Signed-off-by: NDavid S. Miller <davem@davemloft.net>
上级 a7513528
...@@ -1061,6 +1061,7 @@ int tipc_createport(u32 user_ref, ...@@ -1061,6 +1061,7 @@ int tipc_createport(u32 user_ref,
up_ptr = (struct user_port *)kmalloc(sizeof(*up_ptr), GFP_ATOMIC); up_ptr = (struct user_port *)kmalloc(sizeof(*up_ptr), GFP_ATOMIC);
if (up_ptr == NULL) { if (up_ptr == NULL) {
warn("Port creation failed, no memory\n");
return -ENOMEM; return -ENOMEM;
} }
ref = tipc_createport_raw(NULL, port_dispatcher, port_wakeup, importance); ref = tipc_createport_raw(NULL, port_dispatcher, port_wakeup, importance);
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册