ext4: unregister features interface on module unload
authorLukas Czerner <lczerner@redhat.com>
Thu, 3 Feb 2011 19:33:33 +0000 (14:33 -0500)
committerTheodore Ts'o <tytso@mit.edu>
Thu, 3 Feb 2011 19:33:33 +0000 (14:33 -0500)
commit8f021222c1e2756ea4c9dde93b23e1d2a0a4ec37
tree8a74b91a0b1dd27fad9c384449bac0c4b8777a74
parent8f1f745331c1b560f53c0d60e55a4f4f43f7cce5
ext4: unregister features interface on module unload

Ext4 features interface was not properly unregistered which led to
problems while unloading/reloading ext4 module. This commit fixes that by
adding proper kobject unregistration code into ext4_exit_fs() as well as
fail-path of ext4_init_fs()

Reported-by: Eric Sandeen <sandeen@redhat.com>
Signed-off-by: Lukas Czerner <lczerner@redhat.com>
Signed-off-by: "Theodore Ts'o" <tytso@mit.edu>
Cc: stable@kernel.org
fs/ext4/super.c