From: Greg Kroah-Hartman Date: Thu, 16 Feb 2006 21:50:23 +0000 (-0800) Subject: [PATCH] fix module sysfs files reference counting X-Git-Tag: v2.6.17-rc1~1177^2~11 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=03e88ae1b13dfdc8bbaa59b8198e1ca53aad12ac;p=pandora-kernel.git [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 Signed-off-by: Greg Kroah-Hartman --- Reading git-diff-tree failed