Fix clone() of AF specific link data
Passed the original link to ao_clone() instead of the new one.
This commit is contained in:
parent
c18730ddf6
commit
83f14112e2
1 changed files with 1 additions and 1 deletions
|
@ -216,7 +216,7 @@ static int af_clone(struct rtnl_link *link, struct rtnl_link_af_ops *ops,
|
|||
struct rtnl_link *dst = arg;
|
||||
|
||||
if (ops->ao_clone &&
|
||||
!(dst->l_af_data[ops->ao_family] = ops->ao_clone(link, data)))
|
||||
!(dst->l_af_data[ops->ao_family] = ops->ao_clone(dst, data)))
|
||||
return -NLE_NOMEM;
|
||||
|
||||
return 0;
|
||||
|
|
Loading…
Add table
Reference in a new issue