* [PATCH] vxlan: fix error return code in vxlan_fdb_append
@ 2022-04-07 2:46 Hongbin Wang
2022-04-08 11:40 ` patchwork-bot+netdevbpf
0 siblings, 1 reply; 2+ messages in thread
From: Hongbin Wang @ 2022-04-07 2:46 UTC (permalink / raw)
To: davem, kuba, pabeni; +Cc: roopa, edumazet, bigeasy, netdev, linux-kernel
When kmalloc and dst_cache_init failed,
should return ENOMEM rather than ENOBUFS.
Signed-off-by: Hongbin Wang <wh_bin@126.com>
---
drivers/net/vxlan/vxlan_core.c | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/drivers/net/vxlan/vxlan_core.c b/drivers/net/vxlan/vxlan_core.c
index de97ff98d36e..8a5e3a6d32d7 100644
--- a/drivers/net/vxlan/vxlan_core.c
+++ b/drivers/net/vxlan/vxlan_core.c
@@ -651,11 +651,11 @@ static int vxlan_fdb_append(struct vxlan_fdb *f,
rd = kmalloc(sizeof(*rd), GFP_ATOMIC);
if (rd == NULL)
- return -ENOBUFS;
+ return -ENOMEM;
if (dst_cache_init(&rd->dst_cache, GFP_ATOMIC)) {
kfree(rd);
- return -ENOBUFS;
+ return -ENOMEM;
}
rd->remote_ip = *ip;
--
2.25.1
^ permalink raw reply related [flat|nested] 2+ messages in thread
* Re: [PATCH] vxlan: fix error return code in vxlan_fdb_append
2022-04-07 2:46 [PATCH] vxlan: fix error return code in vxlan_fdb_append Hongbin Wang
@ 2022-04-08 11:40 ` patchwork-bot+netdevbpf
0 siblings, 0 replies; 2+ messages in thread
From: patchwork-bot+netdevbpf @ 2022-04-08 11:40 UTC (permalink / raw)
To: Hongbin Wang
Cc: davem, kuba, pabeni, roopa, edumazet, bigeasy, netdev, linux-kernel
Hello:
This patch was applied to netdev/net.git (master)
by David S. Miller <davem@davemloft.net>:
On Wed, 6 Apr 2022 22:46:22 -0400 you wrote:
> When kmalloc and dst_cache_init failed,
> should return ENOMEM rather than ENOBUFS.
>
> Signed-off-by: Hongbin Wang <wh_bin@126.com>
> ---
> drivers/net/vxlan/vxlan_core.c | 4 ++--
> 1 file changed, 2 insertions(+), 2 deletions(-)
Here is the summary with links:
- vxlan: fix error return code in vxlan_fdb_append
https://git.kernel.org/netdev/net/c/7cea5560bf65
You are awesome, thank you!
--
Deet-doot-dot, I am a bot.
https://korg.docs.kernel.org/patchwork/pwbot.html
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2022-04-08 11:41 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2022-04-07 2:46 [PATCH] vxlan: fix error return code in vxlan_fdb_append Hongbin Wang
2022-04-08 11:40 ` patchwork-bot+netdevbpf
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).