diff options
| author | Alexey Dobriyan <[email protected]> | 2007-02-10 01:46:11 -0800 |
|---|---|---|
| committer | Linus Torvalds <[email protected]> | 2007-02-11 10:51:34 -0800 |
| commit | 85cc9b11446fb8e2762269cfbc28676bfe2eaa4b (patch) | |
| tree | 4795d357c9239d2e965dfa2d3183a918d6cb04c0 /include | |
| parent | 38584c14bbba02d8aedace335073b30e49de66a0 (diff) | |
[PATCH] sn2: use static ->proc_fops
fix-rmmod-read-write-races-in-proc-entries.patch doesn't want dynamically
allocated ->proc_fops, because it will set it to NULL at module unload time.
Regardless of module status, switch to statically allocated ->proc_fops which
leads to simpler code without wrappers.
AFAICS, also fix the following bug: "sn_force_interrupt" proc entry set
->write for itself, but was created with 0444 permissions. Change to 0644.
Signed-off-by: Alexey Dobriyan <[email protected]>
Cc: Al Viro <[email protected]>
Cc: "Eric W. Biederman" <[email protected]>
Cc: "Luck, Tony" <[email protected]>
Signed-off-by: Andrew Morton <[email protected]>
Signed-off-by: Linus Torvalds <[email protected]>
Diffstat (limited to 'include')
0 files changed, 0 insertions, 0 deletions