From b6592cb5deb06f5ec2fd17aec57540529dec22ef Mon Sep 17 00:00:00 2001 From: Thomas Graf Date: Tue, 16 Nov 2010 13:46:49 +0100 Subject: link: Fix typo, use rtnl_link_af_alloc() to make sure data buffer is allocated --- lib/route/link.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/route/link.c b/lib/route/link.c index 868a89a..55f6bbd 100644 --- a/lib/route/link.c +++ b/lib/route/link.c @@ -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; -- cgit v0.12