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

2016-11-30 Thread David Miller
From: Haishuang Yan 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 > > Changes in v2: > -

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

2016-11-29 Thread Jiri Benc
On Tue, 29 Nov 2016 09:59:36 +0800, Haishuang Yan wrote: > vxlan_fdb_append may return error, so add the proper check, > otherwise it will cause memory leak. > > Signed-off-by: Haishuang Yan > > Changes in v2: > - Unnecessary to initialize rc to zero.

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

2016-11-28 Thread Haishuang Yan
vxlan_fdb_append may return error, so add the proper check, otherwise it will cause memory leak. Signed-off-by: Haishuang Yan Changes in v2: - Unnecessary to initialize rc to zero. --- drivers/net/vxlan.c | 10 +++--- 1 file changed, 7 insertions(+), 3