Fix clone() of AF specific link data

Passed the original link to ao_clone() instead of the new one.
This commit is contained in:
Thomas Graf 2011-04-21 14:46:06 +02:00
parent c18730ddf6
commit 83f14112e2

View file

@ -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;