vxlan: fix error return code in vxlan_fdb_append
authorHongbin Wang <wh_bin@126.com>
Thu, 7 Apr 2022 02:46:22 +0000 (22:46 -0400)
committerDavid S. Miller <davem@davemloft.net>
Fri, 8 Apr 2022 11:35:12 +0000 (12:35 +0100)
commit7cea5560bf656b84f9ed01c0cc829d4eecd0640b
treeae77f6a80215e3319b2fe616478d475039aa7e00
parent1b808993e19447731e823b1313ee4e8da7fd92a0
vxlan: fix error return code in vxlan_fdb_append

When kmalloc and dst_cache_init failed,
should return ENOMEM rather than ENOBUFS.

Signed-off-by: Hongbin Wang <wh_bin@126.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/vxlan/vxlan_core.c