projects
/
wrapfs-2.6.37.y.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
1071409
)
net/x25: Return the correct errno code
author
Zheng Yongjun
<zhengyongjun3@huawei.com>
Wed, 2 Jun 2021 14:06:30 +0000
(22:06 +0800)
committer
Greg Kroah-Hartman
<gregkh@linuxfoundation.org>
Fri, 18 Jun 2021 07:59:00 +0000
(09:59 +0200)
[ Upstream commit
d7736958668c4facc15f421e622ffd718f5be80a
]
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>
Signed-off-by: Sasha Levin <sashal@kernel.org>
net/x25/af_x25.c
patch
|
blob
|
history
diff --git
a/net/x25/af_x25.c
b/net/x25/af_x25.c
index cb1f5016c433a64f8593d90a97393f7fa5258912..d8d603aa488754fe795329d6d58ebef48ddaf7de 100644
(file)
--- a/
net/x25/af_x25.c
+++ b/
net/x25/af_x25.c
@@
-546,7
+546,7
@@
static int x25_create(struct net *net, struct socket *sock, int protocol,
if (protocol)
goto out;
- rc = -ENO
BUFS
;
+ rc = -ENO
MEM
;
if ((sk = x25_alloc_socket(net, kern)) == NULL)
goto out;