]> git.baikalelectronics.ru Git - kernel.git/commit
net/x25: Return the correct errno code
authorZheng Yongjun <zhengyongjun3@huawei.com>
Wed, 2 Jun 2021 14:06:30 +0000 (22:06 +0800)
committerDavid S. Miller <davem@davemloft.net>
Thu, 3 Jun 2021 22:13:56 +0000 (15:13 -0700)
commite13aed30d374a5858383ab67c1832c75909ef94c
tree8e8421d34921a4d1749e3d7b899ac7c154bb7e77
parentd7435be998269cf30dc64ba22b414342768702a1
net/x25: 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/x25/af_x25.c