mirror of
https://github.com/openharmony/third_party_libnl.git
synced 2026-07-20 23:45:55 -04:00
link: Fix typo, use rtnl_link_af_alloc() to make sure data buffer is allocated
This commit is contained in:
+1
-1
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user