Skip to content
Commit 17b46365 authored by Haishuang Yan's avatar Haishuang Yan Committed by David S. Miller
Browse files

vxlan: fix a potential issue when create a new vxlan fdb entry.



vxlan_fdb_append may return error, so add the proper check,
otherwise it will cause memory leak.

Signed-off-by: default avatarHaishuang Yan <yanhaishuang@cmss.chinamobile.com>

Changes in v2:
  - Unnecessary to initialize rc to zero.
Acked-by: default avatarJiri Benc <jbenc@redhat.com>
Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
parent f92a80a9
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment