Documentation: configfs examples crash fix
authorJiri Slaby <jslaby@suse.cz>
Thu, 26 May 2011 23:25:17 +0000 (16:25 -0700)
committerLinus Torvalds <torvalds@linux-foundation.org>
Fri, 27 May 2011 00:12:34 +0000 (17:12 -0700)
commitdcb3a08e69629ea65a3e9647da730bfaf670497d
treeda89f661c9e0b2ae3d1dabcc3e27dcf06d2ae8fa
parent02d54f092697b6046e466e447cc694b0e6ed45d0
Documentation: configfs examples crash fix

When configfs_register_subsystem() fails, we unregister too many
subsystems in configfs_example_init.  Decrement i by one to not unregister
non-registered subsystem.

[akpm@linux-foundation.org: coding-style fixes]
Signed-off-by: Jiri Slaby <jslaby@suse.cz>
Cc: Joel Becker <joel.becker@oracle.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Documentation/filesystems/configfs/configfs_example_explicit.c
Documentation/filesystems/configfs/configfs_example_macros.c