diff options
author | Denis V. Lunev <den@openvz.org> | 2008-04-29 10:02:16 +0200 |
---|---|---|
committer | Linus Torvalds <torvalds@linux-foundation.org> | 2008-04-29 17:06:21 +0200 |
commit | 659f865ea65a60564ce00a0c571099d1fa55e8e3 (patch) | |
tree | a585a6e0f715cf37a6c80ec3a08db3104194cd7c /samples | |
parent | sound: use non-racy method for /proc/driver/snd-page-alloc creation (diff) | |
download | linux-659f865ea65a60564ce00a0c571099d1fa55e8e3.tar.xz linux-659f865ea65a60564ce00a0c571099d1fa55e8e3.zip |
zorro: use non-racy method for proc entries creation
Use proc_create()/proc_create_data() to make sure that ->proc_fops and ->data
be setup before gluing PDE to main tree.
Add correct ->owner to proc_fops to fix reading/module unloading race.
Signed-off-by: Denis V. Lunev <den@openvz.org>
Cc: Geert Uytterhoeven <geert@linux-m68k.org>
Cc: Alexey Dobriyan <adobriyan@gmail.com>
Cc: "Eric W. Biederman" <ebiederm@xmission.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Diffstat (limited to 'samples')
0 files changed, 0 insertions, 0 deletions