[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Date: Wed, 06 Jun 2007 18:50:23 +0200
From: Patrick McHardy <kaber@...sh.net>
To: "Eric W. Biederman" <ebiederm@...ssion.com>
CC: netdev@...r.kernel.org, socketcan@...tkopp.net, hadi@...erus.ca,
xemul@...ru, tgraf@...g.ch
Subject: Re: [RFC RTNETLINK 04/09]: Link creation API
Eric W. Biederman wrote:
>>+ if (linkinfo[IFLA_INFO_NAME]) {
>>+ nla_strlcpy(name, linkinfo[IFLA_INFO_NAME], sizeof(name));
>>+ ops = rtnl_link_ops_get(name);
>
>
> Ugh. Shouldn't we have the request_module logic here?
> Otherwise it looks like we can skip the validate method and
> have other weird interactions.
Good catch. The easiest solution seems be to simply replay the
request after successful module load, which also avoids the
device lookup race.
Something like this (untested).
View attachment "x" of type "text/plain" (1199 bytes)
Powered by blists - more mailing lists