projects
/
linux.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
1697291
)
dccp: Return the correct errno code
author
Zheng Yongjun
<zhengyongjun3@huawei.com>
Thu, 4 Feb 2021 07:28:20 +0000
(15:28 +0800)
committer
Jakub Kicinski
<kuba@kernel.org>
Sat, 6 Feb 2021 19:15:28 +0000
(11:15 -0800)
When kalloc or kmemdup failed, should return ENOMEM rather than ENOBUF.
Signed-off-by: Zheng Yongjun <zhengyongjun3@huawei.com>
Link:
https://lore.kernel.org/r/20210204072820.17723-1-zhengyongjun3@huawei.com
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
net/dccp/feat.c
patch
|
blob
|
history
diff --git
a/net/dccp/feat.c
b/net/dccp/feat.c
index 305f5680483201dff8f1088a4d9ce5e9a051f4bc..54086bb05c42cd02692d4f7cf6cf63a5d1d6b006 100644
(file)
--- a/
net/dccp/feat.c
+++ b/
net/dccp/feat.c
@@
-371,7
+371,7
@@
static int dccp_feat_clone_sp_val(dccp_feat_val *fval, u8 const *val, u8 len)
fval->sp.vec = kmemdup(val, len, gfp_any());
if (fval->sp.vec == NULL) {
fval->sp.len = 0;
- return -ENO
BUFS
;
+ return -ENO
MEM
;
}
}
return 0;