tipc: Return the correct errno code
authorZheng Yongjun <zhengyongjun3@huawei.com>
Fri, 4 Jun 2021 01:47:02 +0000 (09:47 +0800)
committerDavid S. Miller <davem@davemloft.net>
Fri, 4 Jun 2021 21:17:59 +0000 (14:17 -0700)
commit0efea3c649f0a50d473a4afe2d17c2bbcee639e1
tree485a002bacd36f4ee945ba1bda1e30171e65a23c
parentd15fd7359ab18a46c5fefc36be45b36205f1acfc
tipc: Return the correct errno code

When kalloc or kmemdup failed, should return ENOMEM rather than ENOBUF.

Signed-off-by: Zheng Yongjun <zhengyongjun3@huawei.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
net/tipc/link.c