]> git.kernelconcepts.de Git - karo-tx-linux.git/commit
GFS2: Add kobject release method
authorBob Peterson <rpeterso@redhat.com>
Wed, 13 Jun 2012 14:27:41 +0000 (10:27 -0400)
committerSteven Whitehouse <swhiteho@redhat.com>
Wed, 13 Jun 2012 14:59:48 +0000 (15:59 +0100)
commit0d515210b6969ecfc161f71a4515831d9a6e58f4
tree2e5a5da49dae5d8c036d56fc7ae14532044dfac3
parent0fe2f1e929ecabf834f4af2ffd300fe70700f4b3
GFS2: Add kobject release method

This patch adds a kobject release function that properly maintains
the kobject use count, so that accesses to the sysfs files do not
cause an access to freed kernel memory after an unmount.

Signed-off-by: Bob Peterson <rpeterso@redhat.com>
Signed-off-by: Steven Whitehouse <swhiteho@redhat.com>
fs/gfs2/ops_fstype.c
fs/gfs2/sys.c