lkml.org 
[lkml]   [2010]   [Nov]   [5]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
SubjectRe: Linux 2.6.37-rc1 (libipw remove_proc_entry warning)
On 11/05/10 15:24, Linus Torvalds wrote:
> This bug seems to be due to commit 27ae60f8f7aac ("ipw2x00: replace
> "ieee80211" with "libipw" where appropriate"), where Pavel did this:
>
> - libipw_proc = proc_mkdir(DRV_NAME, init_net.proc_net);
> + libipw_proc = proc_mkdir("ieee80211", init_net.proc_net);
>
> but then the cleanup was kept as
>
> remove_proc_entry(DRV_NAME, init_net.proc_net);
>
> in both places (both in the failure case and in the unload case). The
> error string is also total crap, and says
>
> "Unable to create " DRV_NAME " proc directory\n");
>
> Even though it doesn't actually create a proc directory named DRV_NAME at all.
>
> So that patch looks like total and utter crap to me. The commit message says
>
> "Keep /proc/net/ieee80211 under the original name to avoid breaking user
> interface."
>
> but the thing is, it really didn't fix anything but that one create
> thing. It needs to fix all the other cases too.
>
> Totally UNTESTED patch attached. It may or may not compile. And maybe
> it doesn't catch all cases, but it should catch the obvious ones.

That works for me.

Tested-by: Randy Dunlap <randy.dunlap@oracle.com>


thanks,
--
~Randy
*** Remember to use Documentation/SubmitChecklist when testing your code ***


\
 
 \ /
  Last update: 2010-11-06 00:09    [W:0.476 / U:0.000 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site