link: Fix typo, use rtnl_link_af_alloc() to make sure data buffer is allocated
This commit is contained in:
parent
53015f8381
commit
b6592cb5de
1 changed files with 1 additions and 1 deletions
|
@ -193,7 +193,7 @@ static struct rtnl_link_af_ops *af_lookup_and_alloc(struct rtnl_link *link,
|
|||
if (!af_ops)
|
||||
return NULL;
|
||||
|
||||
if (!(data = rtnl_link_af_data(link, af_ops)))
|
||||
if (!(data = rtnl_link_af_alloc(link, af_ops)))
|
||||
return NULL;
|
||||
|
||||
return af_ops;
|
||||
|
|
Loading…
Add table
Reference in a new issue