kernel-fxtec-pro1x/drivers/isdn/hardware/eicon
Alexey Dobriyan 99b7623380 proc 2/2: remove struct proc_dir_entry::owner
Setting ->owner as done currently (pde->owner = THIS_MODULE) is racy
as correctly noted at bug #12454. Someone can lookup entry with NULL
->owner, thus not pinning enything, and release it later resulting
in module refcount underflow.

We can keep ->owner and supply it at registration time like ->proc_fops
and ->data.

But this leaves ->owner as easy-manipulative field (just one C assignment)
and somebody will forget to unpin previous/pin current module when
switching ->owner. ->proc_fops is declared as "const" which should give
some thoughts.

->read_proc/->write_proc were just fixed to not require ->owner for
protection.

rmmod'ed directories will be empty and return "." and ".." -- no harm.
And directories with tricky enough readdir and lookup shouldn't be modular.
We definitely don't want such modular code.

Removing ->owner will also make PDE smaller.

So, let's nuke it.

Kudos to Jeff Layton for reminding about this, let's say, oversight.

http://bugzilla.kernel.org/show_bug.cgi?id=12454

Signed-off-by: Alexey Dobriyan <adobriyan@gmail.com>
2009-03-31 01:14:44 +04:00
..
adapter.h
capi20.h
capidtmf.c
capidtmf.h
capifunc.c
capifunc.h
capimain.c
cardtype.h
cp_vers.h
dadapter.c
dadapter.h
debug.c drivers/isdn/hardware/icon: fix sparse warning: cast truncates bits 2009-02-27 01:00:42 -08:00
debug_if.h
debuglib.c
debuglib.h fix similar typos to successfull 2009-01-08 08:31:15 -08:00
dfifo.h
di.c isdn: eicon: fix sparse warning: make global functions static 2008-12-16 01:17:33 -08:00
di.h
di_dbg.h
di_defs.h
did_vers.h
diddfunc.c
diva.c Remove pointless casts from void pointers 2008-02-06 10:41:01 -08:00
diva.h
diva_didd.c
diva_dma.c
diva_dma.h
diva_pci.h
divacapi.h
divamnt.c divamnt: BKL pushdown 2008-06-20 14:05:52 -06:00
divasfunc.c
divasi.c proc 2/2: remove struct proc_dir_entry::owner 2009-03-31 01:14:44 +04:00
divasmain.c Merge commit 'v2.6.26' into bkl-removal 2008-07-14 15:29:34 -06:00
divasproc.c isdn divas: fix proc creation 2008-06-10 12:49:31 -07:00
divasync.h
dqueue.c
dqueue.h
dsp_defs.h
dsp_tst.h
dspdids.h
dsrv4bri.h
dsrv_bri.h
dsrv_pri.h
entity.h
helpers.h
idifunc.c
io.c
io.h
istream.c
Kconfig
kst_ifc.h
maintidi.c
maintidi.h
Makefile
man_defs.h
mdm_msg.h
message.c drivers/isdn/hardware/eicon: fix sparse warnings: Should it be static? 2009-02-27 01:00:43 -08:00
mi_pc.h
mntfunc.c
os_4bri.c fix similar typos to successfull 2009-01-08 08:31:15 -08:00
os_4bri.h
os_bri.c fix similar typos to successfull 2009-01-08 08:31:15 -08:00
os_bri.h
os_capi.h
os_pri.c fix similar typos to successfull 2009-01-08 08:31:15 -08:00
os_pri.h
pc.h
pc_init.h
pc_maint.h
pkmaint.h
platform.h
pr_pc.h
s_4bri.c
s_bri.c
s_pri.c
sdp_hdr.h
um_idi.c
um_idi.h
um_xdi.h
xdi_adapter.h
xdi_msg.h
xdi_vers.h