Re: [PATCH v2] vxlan: fix a potential issue when create a new vxlan fdb entry.

From: David Miller
Date: Wed Nov 30 2016 - 12:03:28 EST


From: Haishuang Yan <yanhaishuang@xxxxxxxxxxxxxxxxxxxx>
Date: Tue, 29 Nov 2016 09:59:36 +0800

> vxlan_fdb_append may return error, so add the proper check,
> otherwise it will cause memory leak.
>
> Signed-off-by: Haishuang Yan <yanhaishuang@xxxxxxxxxxxxxxxxxxxx>
>
> Changes in v2:
> - Unnecessary to initialize rc to zero.

Applied, thanks.