commit | aa5fd0fb77486b8a6764ead8627baa14790e4280 | [log] [tgz] |
---|---|---|
author | Gao Feng <fgao@ikuai8.com> | Fri Nov 04 10:28:49 2016 +0800 |
committer | David S. Miller <davem@davemloft.net> | Wed Nov 09 13:14:47 2016 -0500 |
tree | 6e70de9e52fc25034e88dd6836a418e795b23ec1 | |
parent | fd0285a39b1cb496f60210a9a00ad33a815603e7 [diff] |
driver: macvlan: Destroy new macvlan port if macvlan_common_newlink failed. When there is no existing macvlan port in lowdev, one new macvlan port would be created. But it doesn't be destoried when something failed later. It casues some memleak. Now add one flag to indicate if new macvlan port is created. Signed-off-by: Gao Feng <fgao@ikuai8.com> Signed-off-by: David S. Miller <davem@davemloft.net>