]> git.baikalelectronics.ru Git - kernel.git/commit
[PATCH] fix module sysfs files reference counting
authorGreg Kroah-Hartman <gregkh@suse.de>
Thu, 16 Feb 2006 21:50:23 +0000 (13:50 -0800)
committerGreg Kroah-Hartman <gregkh@suse.de>
Mon, 20 Mar 2006 21:42:58 +0000 (13:42 -0800)
commit72e5a91ed5c1489c89040185a6df381f81468247
tree322127d9875129d2e9b1c3cb744b4940bd7d8a47
parent70742a4bd84f273f74a00df47cccac57cf893a84
[PATCH] fix module sysfs files reference counting

The module files, refcnt, version, and srcversion did not properly
increment the owner's module reference count, allowing the modules to
be removed while the files were open, causing oopses.

This patch fixes this, and also fixes the problem that the version and
srcversion files were not showing up, unless CONFIG_MODULE_UNLOAD was
enabled, which is not correct.

Cc: Nathan Lynch <ntl@pobox.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
include/linux/module.h
kernel/module.c
kernel/params.c